You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/docs/get-started/activity.en.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ import { APITable } from "../../../components/APITable";
21
21
To actually use an activity, you need to register it with the `stackflow()` function before using it. An activity is a React component declared with the type `ActivityComponentType`.
@@ -76,7 +76,7 @@ The third parameter of the `push()` function, additional options, includes the f
76
76
Next, let's look at how to replace the current activity without adding a new activity to the stack. Using the `replace()` function from the `useFlow()` hook created in `stackflow.ts`, you can replace the current activity as follows.
@@ -134,7 +134,7 @@ The third parameter of the `replace()` function, additional options, includes th
134
134
Finally, let's look at how to delete the current activity and return to the previous activity. Using the `pop()` function from the `useFlow()` hook created in `stackflow.ts`, you can delete the current activity as follows.
`pop()` takes optional parameters for the number of stacks to pop and additional options. These parameters can be omitted, and default values will be used.
172
+
`pop()` takes optional parameters for the number of activities to pop and additional options. These parameters can be omitted, and default values will be used.
173
173
174
174
```ts
175
-
pop(); // pop a single stack
175
+
pop(); // pop a single activity
176
176
177
-
pop(3); // pop multiple stacks
177
+
pop(3); // pop multiple activities
178
178
179
179
pop({
180
180
/* additional option */
181
-
}); // pop a single stack with additional options
181
+
}); // pop a single activity with additional options
182
182
183
183
pop(3, {
184
184
/* additional option */
185
-
}); // pop multiple stacks with additional options
185
+
}); // pop multiple activities with additional options
186
186
```
187
187
188
-
The first parameter of the pop() function can specify the number of stacks to pop or define additional options. If the first parameter is used for the number of stacks, the second parameter can then be used to provide additional options.
188
+
The first parameter of the pop() function can specify the number of activities to pop or define additional options. If the first parameter is used for the number of activities, the second parameter can then be used to provide additional options.
189
189
190
190
The additional options include the following values.
0 commit comments