kamranahmedse / redux-persist-expire

Expiring transformer for redux-persist
MIT License
78 stars 12 forks source link

It doesn't seem it works #4

Closed alpavlove closed 5 years ago

alpavlove commented 5 years ago

It doesn't seem it add some expiration date. I wrap. I do it in this way. Do I do anything wrong? Thanks wrapped reducer — https://monosnap.com/direct/EoTvQLbTAbE2hGkJghPlYjlvMdKiVQ wrapped store — https://monosnap.com/direct/LVK8XVdbinpup71tZejzSGAXM9zlOP

alpavlove commented 5 years ago

After a small investigation, I see it doesn't pass whitelist checking since the whitelist array contains only a reducerKey, but whitelistBlacklistCheck has keys of that reducers. This way it will never pass

kamranahmedse commented 5 years ago

Thanks @a-pavlov-parc for opening the issue. Could you please provide the reproducing example on Github for me to look at? Or possibly open a PR, if you have figured it out :)