YDJ-FE / ts-react-vite_or_webpack

a starter-template with typescript, react, mobx and vite/webpack...
https://starter.jackple.com/
MIT License
362 stars 116 forks source link

RrouterStore not working using createBrowserHistory #24

Closed pcg92 closed 5 years ago

pcg92 commented 5 years ago

Hi, I know that this issue is not problem from this repo, but maybe you know why im getting the following problem:

I changed the Provider element to use createBrowserHistory instead createHashHistory, but when I use routerStore.push('/') the url in the browser changes, but the view nots.

Any idea? thanks!

jackple commented 5 years ago

@pcegarra I did not use createBrowserHistory for a long time. I try to find some docs, and it should help.

https://github.com/alisd23/mobx-react-router#troubleshooting

https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/guides/blocked-updates.md