v5.6.x
This release includes a number of improvements. Notably:
- transforms now have access to a third argument of the "full state"
- persisted state now updates immediately after rehydration rather than waiting for a subsequent action to persist
- persisted reducers now passthrough if the base reducer does not modify state (performance fix)
- fix hardSet issue when inbound state is undefined (state is now only reconciled if inbound state is defined)
Changelog
- (persistReducer): only reconciler defined state (#698)
- (general): bump deps, cleanup, prettierrc (#694) 0cab4f0
- (createTransform) Give transformers access to the full state (i.e., across all available keys) (#682) 0db73d3
- (types): flow fixes (#692) de1dbcf
- (test): use memory storage in tests (#691) 58e14d6
- (docs): Update README with redux-persist-expo-securestore (#678) b357b7f
- (persistReducer): return unmodified state if possible (#689) 96525fb
- (persistReducer): update persistoid on rehydrate (#688) f89d60b
- (docs): Update v4 link (#684) 21cbb5e
- (test) switch to storage-memory module (#683) f1ef085
- (docs): fix typo (#665) 2cb1a15
- (docs) update stateReconciler import (#666) 26109c0