In our project, I was need to sync a piece of information between
localStorage and the Redux state. Actually I subscribed to changes in a
localStorage and in Redux, and if change happens in
localStorage I update the state, and vice versa.
Right now I've created a redux enhancer for that. My coworker, however, claims that it isn't enhancing store functionality, and recommends to use a component, a content-provider or a fragment for that.
As doing it inside Redux' reducers is not recommended, as the reducers should be pure functions, where am I expected to put this sort of side effects?