magmo / apps

Proof of concept applications that use the Force Move Game framework.
9 stars 5 forks source link

Implement redux storage #630

Closed lalexgap closed 5 years ago

lalexgap commented 5 years ago

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

Fixes #22.