Isomorphic Redux demo, with routing and async actions https://medium.com/@bananaoomarang/handcrafting-an-isomorphic-redux-application-with-love-40ada4468af4
How would you render a dynamic route on a TodosView.js component? (example localhost:3000/todos/1 where 1 is the id of the todo item)
In Todos component, you used: @fetchdata((state, dispatch) => dispatch(todoActions.loadTodos()))
So, In TodosView, how would you get the parameter ( 1 in this case ), and then pass it to the getTodo(id) action so that it can be rendered on the server?
The Axios interceptor in server.js is run more and more on each page load. On first load it is run twice, four times the next load, then six, then eight etc.
It seems it runs all previous requests as well as the current one. The final one must be the one that returns a result as this sets all cookies etc meaning if you login in from multiple browser sessions the same user is always logged in.