useFetcher
breaks the client side routing
#4804
Replies: 4 comments
-
Do you have the Scripts component in your root? |
Beta Was this translation helpful? Give feedback.
-
Yes, I have. I upgraded from 1.0.6 version and I encountered this problem. Also the |
Beta Was this translation helpful? Give feedback.
-
I created an abstraction for remix themes (https://github.com/abereghici/remix-themes) and in the theme provider I used |
Beta Was this translation helpful? Give feedback.
-
I suggest you should update the original issue you raised and mention |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Remix are you using?
1.1.1
What version of Node are you using? Minimum supported version is 14.
v14.15.4
Steps to Reproduce
I created an abstraction for remix themes (https://github.com/abereghici/remix-themes) and in the theme provider I used useFetcher which caused the page to be reloaded each time I clicked to links. I replaced useFetcher with a simple fetch and now is working as expected. What might be wrong here ? https://github.com/abereghici/remix-themes/blob/main/src/theme-provider.tsx#L60
Beta Was this translation helpful? Give feedback.
All reactions