javascript - What would be the best practice for retaining a state on refresh in React/Flux? -
this typically solved using local storage or cookies in angular. i'm assuming similar process appropriate in flux. use localstorage within store retain state? or make fresh set of requests on refresh? pointers appreciated. local storage or cookies work fine, yes. in store, can use local storage or firebase keep data -- , cache in javascript object. way, when asked data, store can check see if has data in memory and, if not, check against more permanent storage mechanism of local storage, firebase -- or going server if need be.