What is the way around with basename if I'm using the newest version of history lib(5.0.0)
const history = createBrowserHistory({ basename: '/user-instructions' });
Seems to be an intentional change. See the v5 pull request #751 and #811.
There is no workaround to my knowledge.
I think it is a necessary option. Must use the oldest version for that.
why not basename ???? it's so useful
@vlzuiev I've just started using a very hacky workaround, but I have my fingers crossed that there will be a nicer solution for use navigation from sagas/logic outside of components in the future.
https://github.com/ReactTraining/history/issues/810#issuecomment-680722365
Most helpful comment
I think it is a necessary option. Must use the oldest version for that.