Flowpack / media-ui

The development repository for the new Neos media management interface
GNU General Public License v3.0
20 stars 16 forks source link

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

Open Sebobo opened 3 years ago

Sebobo commented 3 years ago

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

Sebobo commented 1 year ago

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.