Replies: 2 comments 1 reply
-
FWIW, it looks like https://github.com/salvoravida/redux-first-history/blob/master/rr6/index.js |
Beta Was this translation helpful? Give feedback.
-
Here is my first experiment: steinarb/handlereg@eda14f2 I put a "location detector" in one of the components, dispatching a redux action every time the location changes. Not sure if this has any side effects...? (useEffect always leaves me somewhat confused...) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using redux-first-history to hook react-router navigation into redux.
It let me do stuff like e.g. have an RTK listener listening for router navigation and close an alert when there is a react router navigation.
But redux-first-history fails when building with vite >=6.0.0. The last commit on react-first-history is 8 months old, so redux-first-history is starting to look abandoned.
I am therefore trying to remove my use of redux-first-history to be able to continue with newer versions of vite.
Most of the redux-first-history stuff I use, is straightforward to replace.
But this "listening for navigation and set redux value" usage was a tricky one to replace... I haven't figured out a way yet.
Any and all ideas are welcome!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions