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
I am using useFetcher to submit form data without navigation within a modal. When a user submits data within the modal and closes the modal I would like clear the fetcher state so when the user re-opens the modal they get the same experience as the first usage.
I can work around this by rendering the modal only when needed which mounts and unmounts the modal component but this seems sub-optimal. Ex:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using useFetcher to submit form data without navigation within a modal. When a user submits data within the modal and closes the modal I would like clear the fetcher state so when the user re-opens the modal they get the same experience as the first usage.
I can work around this by rendering the modal only when needed which mounts and unmounts the modal component but this seems sub-optimal. Ex:
See discussion at remix-run/remix#2749.
Beta Was this translation helpful? Give feedback.
All reactions