We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b666c commit 730047eCopy full SHA for 730047e
src/django_idom/hooks.py
@@ -246,10 +246,9 @@ def use_mutation(*args: Any, **kwargs: Any) -> Mutation[_Params]:
246
"""
247
248
if isinstance(args[0], MutationOptions):
249
- _args = use_mutation_args_1(*args, **kwargs)
+ mutation_options, mutation, refetch = use_mutation_args_1(*args, **kwargs)
250
else:
251
- _args = use_mutation_args_2(*args, **kwargs)
252
- mutation_options, mutation, refetch = _args
+ mutation_options, mutation, refetch = use_mutation_args_2(*args, **kwargs)
253
254
loading, set_loading = use_state(False)
255
error, set_error = use_state(cast(Union[Exception, None], None))
0 commit comments