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
??? question "Can I make a failed mutation try again?"
228
+
??? question "Can I force a mutation run again?"
235
229
236
-
Yes, `#!python use_mutation` can be re-executed by calling `#!python reset()` on your `#!python use_mutation` instance.
230
+
`#!python use_mutation` can be re-executed by calling `#!python reset()` on your `#!python use_mutation` result.
237
231
238
232
For example, take a look at `#!python reset_event` below.
239
233
@@ -251,7 +245,7 @@ Mutation functions can be sync or async.
251
245
252
246
??? question "Can `#!python use_mutation` trigger a refetch of `#!python use_query`?"
253
247
254
-
Yes, `#!python use_mutation` can queue a refetch of a `#!python use_query` via the `#!python refetch=...` argument.
248
+
`#!python use_mutation` can queue a refetch of a `#!python use_query` via the `#!python refetch=...` argument.
255
249
256
250
The example below is a merge of the `#!python use_query` and `#!python use_mutation` examples above with the addition of a `#!python use_mutation(refetch=...)` argument.
Copy file name to clipboardExpand all lines: docs/src/reference/router.md
+1-3
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,7 @@ URL router that enables the ability to conditionally render other components bas
25
25
You can duplicate all your URL patterns within both Django and ReactPy, but it's easiest to use a wildcard `.*` within Django's `#!python urlpatterns` and let ReactPy handle the rest. For example...
0 commit comments