Uh oh!
There was an error while loading. Please reload this page.
[C-5572] Add cache syncing between redux and react-query - #10833
Conversation
|
| /** | ||
| * Signals to add an entry to the cache. | ||
| * Signals to add an enty to the cache. |
| replace?: boolean | ||
| // persist optionally persists the cache entry to indexdb | ||
| persist?: boolean | ||
| source?: 'react-query' | 'redux' |
| ) | ||
| } | ||
| }, | ||
| [Kind.COLLECTIONS]: { |
There was a problem hiding this comment.
Collections doesn't need updateRelations?
There was a problem hiding this comment.
so this is just needed when an entity may be in another entity, which isn't the case for collections.
| ) : null} | ||
| {!IS_PRODUCTION ? ( | ||
| <Route path='/react-query-redux-cache-sync'> | ||
| <ReactQueryReduxCacheSyncPage /> |
[de6d2a6] [C-5580] Remove legacy search page (#10856) Dylan Jeffers [ffb9160] [QA-1894] Fix addEntries metadata types (#10854) Dylan Jeffers [af64525] Update tab UI casing (#10853) Dylan Jeffers [b0da4b0] [C-5577] Update web tabs UI (#10849) Dylan Jeffers [7df0234] [C-5576] Dont build harmony (#10850) Dylan Jeffers [e43f533] [C-5561] Remove format utils dupes (#10840) Dylan Jeffers [b1e4dd6] [C-3728] Persist/update playlist image when adding track to playlist (#10852) Sebastian Klingler [1fcf9d7] [PAY-3744] Fix zod validation id error (#10846) Sebastian Klingler [0f0c6c9] Remove some unused packages (#10845) Sebastian Klingler [a3b9a5a] [C-5572] Add cache syncing between redux and react-query (#10833) Dylan Jeffers [162f389] [C-5574] Fix root verify (#10839) Dylan Jeffers [45e5fe9] [C-5575] Fix mobile build (#10835) Sebastian Klingler [107de26] [PAY-3733] Fix localStorage set (#10831) Sebastian Klingler [156936a] [C-5571] Update react-query hooks to use legacy data format (#10832) Dylan Jeffers [277288c] [C-5570] Remove v1 theme (#10826) Dylan Jeffers [246fd88] [PAY-3719] Add ExpandableNavItem component (#10808) Farid Salau
Description
Now that redux and react-query are caching entities in the same data-format, we can add a bidirectional sync.
For redux -> react-query
For react-query -> redux
Other changes
How Has This Been Tested?
Added some example files showing this behavior