nareshbhatia / mobx-state-router

MobX-powered router for React apps
https://nareshbhatia.github.io/mobx-state-router/
MIT License
227 stars 30 forks source link

Usage of replaceHistory causes unexpected re-transition #90

Open kirilldronkin opened 4 years ago

kirilldronkin commented 4 years ago

Hi. If I pass replaceHistory as true in setRouterState() even with the same route, params and queryParams a re-transition will happen anyway because of deep comparison of two states in transition() and default false value for replaceHistory in createMatchingRouterState(). Is it an expected behaviour? Maybe options should be ignored during comparison?