Replies: 1 comment
-
For now my workaround is pass the same state from action data and then set it based on if I have data on action. But this fails if I refesh the same route again. To avoid this issue altoghter I need to not use state at all. That would be a big refactor. |
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.
-
HI,
I have a problem right now where I show a state to the user based on on my react router state that I passed to a new route.
Now after I do a useSubmit request I loose my state. This works fine if I use fetcher tho. But right now I need to use useTrastion so I can show a loading state in a different compoenent.
Could there be an option to set the state while submited and when a new entry is added to stack we add the state as well?
something like
submit({ action:"/dashboard", state : {name:"value"}})
Beta Was this translation helpful? Give feedback.
All reactions