Open PiotrKujawa opened 2 years ago
Hey there, @PiotrKujawa. Thanks for this I'll take a look and come back to you shortly. :)
@PiotrKujawa Thank you for creating this, it's so useful and well documented too!
@liquidvisual I'm glad you found it useful :)
Hi everyone, I'd like to introduce a new possibility in creating Redux Persist config using my package called Redux Deep Persist. Nested configs are no longer necessary because you can use getPersistConfig method and define a nested whitelist or a blacklist using dot notation:
whitelist: ['key1.nestedProp1.nestedProp2.nestedProp3', ...']
orblacklist: ['key1.nestedProp1.nestedProp2.nestedProp3', ...']
.Here's an example of configuration:
My proposal is to add that note to the official documentation of Redux Persist as an alternative method of configuration. I've seen lots of questions about "how to persist nested state", and because I had the same requirement in my own project I decided to make our life easier. Please let me know what do you think. I hope this will be helpful.
@rt2zz @ckalika please take a look. Thanks.