mobx-react-router: Newly created store missing history and location in react-router 6.x
Hi there!
I am using react-router @6.21 and it seems now mobx RouterStore is missing the History and Location. How should I ensure the history is synced with the router in the new react-router syntax?
About this issue
- Original URL
- State: open
- Created 5 months ago
- Comments: 31
@kkollman No worries. I pushed the changes in progress to another branch and released v6.0.0-alpha on NPM. It seems that vite.js is able to start with this new version. Give it a try when you have time π
Okay, I can finally say: done! π The last missing puzzle was to properly configure vite.js plugins. Now I can say your solution is fully working π Thank you very much! Itβs been a while, but we finally made it π
Cool, we are making some progress π I finally was able to set up the stackblitz, with a simple example.
https://stackblitz.com/edit/github-bje76z-uyn64v?file=src%2Fmain.jsx
If you have some time, can you try to see if you can reproduce your bug there?
Oops!
Let try:
npm install git+https://github.com/IBM/mobx-react-router.git#masteror
yarn add git+https://github.com/IBM/mobx-react-router.git#master@gcattan unfortunately, itβs a private codebase and I cannot share it. But Iβll try the branch you mentioned now!