3 ms·
Since you are talking about using Redux, you most definitely can dispatch push actions with libs like connected-react-router or just use the history API directl
by Tenemo 7y ago
Since you are talking about using Redux, you most definitely can dispatch push actions with libs like connected-react-router or just use the history API directly (for things like replacing state instead of pushing). Most of the redirects I write are inside business logic and I don't like mixing <Redirect /> in there, too.