I would like to fetch data from the API after EVERY call of (redux
<Switch> <Route path="/some"/> <Route ... /> </Switch>
In older versions of
<Route>, we could use the
onEnter event to set some promises which retrieved the data.
How to correctly/professionally do it now?
For the moment I have set REDUX SAGA listener for every
LOCATION_CHANGE acction. But this solution limits me.
I will be grateful for your help