chairbender / consenscia

A webapp for capturing, understanding, and collaboratively building scientific consensus. Motivated by the replication crisis.
MIT License
0 stars 0 forks source link

Implement Flux pattern using Redux for tracking state #12

Closed chairbender closed 8 years ago

chairbender commented 8 years ago

Implement Flux pattern using Redux for tracking state. For example for tracking logged in user name.

Docs here: http://redux.js.org/docs/basics/ExampleTodoList.html

chairbender commented 8 years ago

Got this mostly working. Next step is to store and initialize the state from document.cookie. And use the store instead of getting it directly from the cookie every time when doing an authenticated call. Basically, refactor Webservice.jsx to use the store not the cookie.

Also consider redesigning how webservice calls work to better mesh with flux.

chairbender commented 8 years ago

Actually I'm fine with how the webservice auth works right now. No need to initialize it from document.cookie. We can keep that implementation detail private to Webservice.jsx