Using localForage and restoring from coldstore
This commit is contained in:
6
src/js/services/localstorage/actions.js
Executable file
6
src/js/services/localstorage/actions.js
Executable file
@ -0,0 +1,6 @@
|
||||
export function restoreFromColdStore(item) {
|
||||
return {
|
||||
type: 'RESTORE_FROM_COLD_STORE',
|
||||
item,
|
||||
};
|
||||
}
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user