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
I am in the process to upgrade to rect-router-6 and getting rid of browserHistory inside my redux /actions folder.
I am trying to use history using both ways presented here:
but I get an error anyway:
Using own history instance:
Importing browser history singleton:
Does anyone know if I am doing something wrong?
The text was updated successfully, but these errors were encountered:
Use HistoryRouter instead of BrowserRouter: import { unstable_HistoryRouter as HistoryRouter } from 'react-router-dom';
Then, you will be able to import history global object in redux thunk actions. import history from 'history/browser'; // use history in thunk actions
I am in the process to upgrade to
rect-router-6
and getting rid ofbrowserHistory
inside my redux/actions
folder.I am trying to use
history
using both ways presented here:but I get an error anyway:
Using own history instance:
Importing browser history singleton:
Does anyone know if I am doing something wrong?
The text was updated successfully, but these errors were encountered: