This is a simple pattern I follow that helps maintain an easily accessible graph of all derived data flowing through a Redux application, and expose that derived data (as well as the Redux state itself) to the global window object in the browser's console.
computes selectors and sets the derived data on the window object, visible at
simply exposes the redux state to the window object at
window.state. nothing crazy here
apply the two middlewares