media-ui icon indicating copy to clipboard operation
media-ui copied to clipboard

Reinitialize localStorage state if schema doesn't match anymore due to an update

Open Sebobo opened this issue 4 years ago • 1 comments

If something in the schema changes the whole module currently crashes when loading

Sebobo avatar May 01 '21 12:05 Sebobo

The localStorageEffect used in RecoilJS atoms now allows adding a validate callback to allow checking whether the read value from the store matches the pattern the application expects. This is already implemented for the pagination state.

Sebobo avatar Apr 07 '23 12:04 Sebobo