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
`pop()` takes an optional first parameter for additional options. This first parameter can be omitted, and default values will be used.
172
+
`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.
166
173
167
174
```ts
168
-
pop();
175
+
pop(); // pop a single stack
176
+
177
+
pop(3); // pop multiple stacks
169
178
170
-
// or
171
179
pop({
172
180
/* additional option */
173
-
});
181
+
}); // pop a single stack with additional options
182
+
183
+
pop(3, {
184
+
/* additional option */
185
+
}); // pop multiple stacks with additional options
174
186
```
175
187
176
-
The first parameter of the `pop()` function, additional options, includes the following values.
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.
189
+
190
+
The additional options include the following values.
177
191
178
192
<APITablehasDefaultValue>
179
193
|||||
@@ -183,4 +197,4 @@ The first parameter of the `pop()` function, additional options, includes the fo
183
197
184
198
---
185
199
186
-
We have learned how to stack, replace, and delete activities. Now, let's learn how to create a virtual stack within an activity.
200
+
We have learned how to stack, replace, and delete activities. Now, let's learn how to create a virtual stack within an activity.
0 commit comments