Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix issues 2100 /** * fix bug: #2100 * * reason: redux-persist load storage data by 'getItem' API with a timeout (5 seconds default) when app ’cold start', * on some old devices, I/O is slow and 'readfile' operation may take long time Occasionally, when this happened, timeout * will lead to redux-persist rehydrate state with undefined and an Error(https://github.com/rt2zz/redux-persist/blob/master/src/persistReducer.js#89). * * solution: the easy way to fix is to set a big timeout on config, Go further, we could save 'keyring' etc some important * data to separate files or backup for this. the second way is not complicated, we could set * serialize and deserialize to false to get JSON object and modify setItem/getItem API to save/load data. */ * remove comment * Use Logger Co-authored-by: sethkfman <[email protected]> Co-authored-by: Ricky Miller <[email protected]>
- Loading branch information