Closed glenne closed 1 year ago
Argh! Problem solved.
Somehow on this device Samsung Backup and Restore was enabled and it had cached an old state. When the app was reinstalled the old state was brought in with the app and react-native-mmkv-storage did it's job and read it in as it should. Disabling Samsung Backup and Restore returned all to expected behavior. If only these manufacturer apps could be easily uninstalled...
Describe the bug After uninstalling the app and reinstalling, it reads stale settings data.
To Reproduce Steps to reproduce the behavior:
Where is this old setting coming from? Rebooting the device read back X=XYZ (good) but reinstalling reads back ABC (bad).
Expected behavior After app reinstall, the setting for X should be the last set value (XYZ), not some prior value (ABC)
Screenshots N/A
Platform Information:
Additional context Am using MMKV.getMapAsync and MMKV.setMapAsync. Init done with
new MMKVLoader().initialize()
I attempted to enable logging and got the following trace. The files seem to magically appear when the app is started. If the app is uninstalled, where are the files coming from with old state?