react-router-last-location
react-router-last-location copied to clipboard
Doesn't work for reload
If the current route was A and a reload happens on route A and then user moves to route B then last route comes as null instead of A.
@nikhil271995 Hey, thanks for reporting the issue.
Probably you meant scenario like this:
- Visit
/
,last = null
- Visit
/about
,last = /
- Visit
/contact
,last = /about
- Refresh/reload
/contact
,last = null
Could you confirm that scenario described by me is what you meant?
I can confirm scenario 4. The last location is missing if the page is reloaded. Would be great if you could pass a persitor
function to the LastLocationProvider
. In that case, each user could implement its own lastLocation caching strategy.
@taverasmisael Yup, I'm happy to add such functionality to the lib. Will try to finish work on this and #17
Any update on this?
It still doesn't work on page reload, any update?