[BUG] mutationOptions
are overriding Refine's behavior unexpectedly
#5888
Labels
bug
Something isn't working
Describe the bug
Consider this:
And
authProvider.ts
as follow:Then
onSuccess
callback onuseLogin
will override the Refine's behavior foronSuccess
causing theredirectTo
to not work.Steps To Reproduce
authProvider
onSuccess
callback inuseLogin({ mutationOptions: onSuccess() { /* callback */ }});
Expected behavior
mutationOptions
should work along side the Refine's default behavior, redirect should occur.Packages
Additional Context
No response
The text was updated successfully, but these errors were encountered: