edy / redux-persist-transform-filter

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

Blacklist predicate filtering doesn't work properly on arrays #12

Closed rostislav-simonik closed 7 years ago

rostislav-simonik commented 7 years ago

initial:

state = { a : { b: [1,2,3]  }
path: a.b
predicate: () => true

expected: state = { a: { b: [] } currently: state = { a: { b: [undefined, undefined, undefined] }

edy commented 7 years ago

hi, could you make a failing test for this issue?

rostislav-simonik commented 7 years ago

Pull request #13

edy commented 7 years ago

thank you, i just released 0.0.14 with the fix