Using localForage and restoring from coldstore

This commit is contained in:
James Barnsley
2020-09-02 08:12:18 +12:00
parent 1d77cad28c
commit 53be543dd3
21 changed files with 4886 additions and 842 deletions

View File

@ -0,0 +1,6 @@
export function restoreFromColdStore(item) {
return {
type: 'RESTORE_FROM_COLD_STORE',
item,
};
}

View File

@ -264,7 +264,7 @@ const localstorageMiddleware = (function () {
},
);
break;
/*
case 'SUPPRESS_BROADCAST':
var ui = storage.get('ui');
if (ui.suppressed_broadcasts !== undefined) {
@ -282,6 +282,7 @@ const localstorageMiddleware = (function () {
},
);
break;
*/
/**
* Experimental saving of stores to localStorage