You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.
I want to run my app in a context so i need a history basename:
import {createHistory,useBasename} from 'history';
const history = useBasename(createHistory)({
basename: '/mybase'
});
I also use an onEnter in the route which loads current session and calls dispatch. The dispatch runs into the syncReduxAndRouter and call pushState causing the loop. This happens because redux-simple-router uses window.location to check the changes and is not is not aware of the basename used in the history so it always calls pushState
The text was updated successfully, but these errors were encountered:
I want to run my app in a context so i need a history basename:
I also use an
onEnter
in the route which loads current session and callsdispatch
. Thedispatch
runs into thesyncReduxAndRouter
and callpushState
causing the loop. This happens because redux-simple-router useswindow.location
to check the changes and is not is not aware of thebasename
used in the history so it always callspushState
The text was updated successfully, but these errors were encountered: