How would I useSubmit()
without triggering a re-render before the action completes?
#11962
Unanswered
svenvandescheur
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@svenvandescheur did you solved this? I believe you can solve this with shouldRevalidate. Just checking in to see you found other ways. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the
useSubmit
hook to dispatch actions to perform state changes on an API (const submit = useSubmit()
). I've noticed that my UI re-renders solely calling the returnedsubmit
function which interferers with my application (which it shouldn’t, I know).I'm expecting my application NOT to re-render until the next completion of the loaders. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions