reset callback #3707
Unanswered
eugenegordeiev
asked this question in
General
reset callback
#3707
Replies: 1 comment
-
can you share that in a CSB? |
Beta Was this translation helpful? Give feedback.
0 replies
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 have a weird issue. I'm using an example of 'SUBMIT WITH RESET' from the API documentation. After resetting the form, I need to update the history state, however, if I try to do a history.replace() right after the reset, the component get re-rendered 40+ times. If I put the history.replace in timeout, it works fine.
What is the proper way to perform this action after reset() - preferably without using setTimeout and with minimal re-renders?
Below is an example:
Beta Was this translation helpful? Give feedback.
All reactions