This introduces redux-storage and stores channel info (and some related info) in storage.
We load from indexedDB when the page is loaded and we save to indexedDB after every action(this can be configured to a specific list of actions). Currently there's no error handling for storage related failures(#629).
Instead of storing adjudicatorState there is saga that updates adjudicatorState based on the latest on-chain info.
A quick way of seeing storage working is to
Open a channel, play a game, and select Keep Open when concluding
Refresh one more browsers
Open a new channel. It will use the existing ledger channel that was saved in storage.
This introduces
redux-storage
and stores channel info (and some related info) in storage.We load from indexedDB when the page is loaded and we save to indexedDB after every action(this can be configured to a specific list of actions). Currently there's no error handling for storage related failures(#629).
Instead of storing
adjudicatorState
there is saga that updatesadjudicatorState
based on the latest on-chain info.A quick way of seeing storage working is to
Keep Open
when concludingFixes #22.