Instead of thunks, you can also use this approach:
https://medium.com/@abaikov23/solving-cross-reducer-state-dependencies-in-redux-with-patch-action-middleware-a9f796d45860