edy / redux-persist-transform-filter

Filter transformator for redux-persist
MIT License
190 stars 21 forks source link

using this removes my keys from store completely #24

Closed jasan-s closed 5 years ago

jasan-s commented 5 years ago

So my initial state of store is like so:

reducerA: {
a: null,
b: null,
c: {}
}

if i use this to create a BlackList

createBlacklistFilter('reducerA', [
  'c',
])

Then Right after persist/REHYDRATE fires my store is updated to :

reducerA: {
a: null,
b: null,
}

I thought the intended goal was to not persist certain keys but still have the store fallback to initial state. AM I doing something wrong?

jasan-s commented 5 years ago

this worked https://github.com/edy/redux-persist-transform-filter/issues/17#issuecomment-424416356