rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.91k stars 862 forks source link

[Feature Request]: Auto merge deeper than level 2 #1418

Open SeongwoonHong opened 1 year ago

SeongwoonHong commented 1 year ago

There's autoMergeLevel1 and autoMergeLevel2 apis, but It'd be great if there's Level3 and 4 etc. I'm already using autoMergeLevel2 but it wouldn't merge anything that's nested more than 3 levels. for instance, this is my store

user: {
  something: {
    anything: {
          ...,
          hello: []      <--- this will not be merged
      }
  }
}
PiotrKujawa commented 1 year ago

Hi @SeongwoonHong you can use this package which is dedicated to Redux Persist with a nested state https://github.com/PiotrKujawa/redux-deep-persist It is also mentioned here https://github.com/rt2zz/redux-persist/issues/1371

@ckalika @rt2zz can you please approve this PR https://github.com/rt2zz/redux-persist/pull/1391 to let people know about this possibility?