SivanMehta / treedoff

Exploring tradeoffs with a tree
0 stars 0 forks source link

Pass default state (the right way?) #31

Open connorqmoore opened 7 years ago

connorqmoore commented 7 years ago

Right now we can implement this by conditionally matching on a react router params and fetching. Interesting piece here http://redux.js.org/docs/recipes/ServerRendering.html on server rendering. Can help set an initial state to maybe setup a URL based sharing feature. Probably unnecessary but cool to know i think. Security get crayz here too https://github.com/yahoo/serialize-javascript can be used to hopefully serialize things

SivanMehta commented 7 years ago

What is the advantage of even having a default state? Depending on the progress of #27, we don't even have to have a tree traversal when the user logs in. Ideally, the a user should log in and see a list of their arguments, and the option to create a new one if necessary.