I am using redux to keep some user settings locally and redux-persist to save them to AsyncStorage. This works fine. However there is an issue when publishing new app updates in the particular case the object structure of the redux store has been modified. When triggering the OTA update, the redux objects are not reset with the new structure (logically because of the persist). Being the only “manual” solution to delete the previous version of the app first and install the new one.
When launching the app, I am checking for new OTA updates (with expo Updates.checkForUpdateAsync) and forcing a restart of the app. My idea is force a full reset of the local storage in case the new release has a modified redux-store. This could be signalled/checked by for example a specific increase in version number (v1.1.1 => v1.1.2 no reset needed, v1.1.1 => v1.2.0 reset required).
Thanks for your inputs !