redux-persist icon indicating copy to clipboard operation
redux-persist copied to clipboard

Multiple persistReducer, but... with different storages files

Open UXDart opened this issue 6 years ago • 6 comments

Is it possible, I googled and search all issues... but couldn't find an answer... what I want to do is to have separate files/storages for different reducers. the reason is that the main app uses a storage... that is fine. but I have a separate part of the project that could become a large file, so it would be good to separate the file so the save operation doesn't need to "save the other storages files"... just that file. is that possible? I assume I need to use different persistReducer with configs that whiteList different keys? I could try but I need to be sure it works and that it is supported. any tips would be appreciated... TIA! (btw I'm using electron really, so the save operations are faster but anyway)

UXDart avatar Jun 09 '19 11:06 UXDart

@UXDart did you end up figuring it out? I found #413 which seems to imply this does work.

samuelmaddock avatar Jul 06 '19 22:07 samuelmaddock

no yet... not sure about that post, it seems is possible but not sure how to do it exactly, can't find a good example. the problem is... I can try things... but then if is not supported or if something changes everything breaks so that would be a big problem, specially if there is data lost. Thx

UXDart avatar Jul 07 '19 16:07 UXDart

I'm trying to use it with multiple stores/contexts...

UXDart avatar Jul 07 '19 20:07 UXDart

same here there is data lost

marryjin avatar Jan 16 '20 06:01 marryjin

Any solution guys?

quicksilverr avatar Dec 16 '22 10:12 quicksilverr

up on this @rt2zz

jayoliveros286 avatar Mar 15 '23 07:03 jayoliveros286