bananaoomarang / isomorphic-redux

Isomorphic Redux demo, with routing and async actions
https://medium.com/@bananaoomarang/handcrafting-an-isomorphic-redux-application-with-love-40ada4468af4
MIT License
455 stars 87 forks source link

Render dynamic route on the server #52

Closed yungrich closed 8 years ago

yungrich commented 8 years ago

How would you render a dynamic route on a hypothetical TodosView.js component? (example localhost:3000/todos/1 where 1 is the id of the todo item)

On Home you used: static needs = [ TodosActions.getTodos ];

On TodosView, how would you get the parameter ( 1 in this case ), and then pass it to the viewTodo(id) action so that it can be rendered on the server?

yungrich commented 8 years ago

[solved] you can delete this issue

Great work on this repo btw loving it

bananaoomarang commented 8 years ago

Thanks, glad you find it useful :)