jasonmerino / react-native-simple-store

A minimalistic wrapper around React Native's AsyncStorage.

Home Page:https://www.npmjs.com/package/react-native-simple-store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

store.save(key, value) stopped working

y2k-shubham opened this issue · comments

  • All of a sudden, store.save(key, value) has broken down.
  • It was functioning properly (verified by store.get(key)) until I (once) executed store.delete(key)

  • While I can verify that data is being saved by invoking store.get(key) immediately after store.save(key, value), the data won't persist after re-launching the app (in fact I'm not sure after how long the data vanishes)
  • Furthermore, I didn't install any new packages (or modified any existing ones), which could be blamed for it

After (obviously) removing store.delete(key) call, I tried the following without luck:

  • uninstalling app on iOS simulator before re-installing
  • restarting packager with --reset-cache
  • rebooting my laptop (facepalm!)
  • taking fresh clone of the (private) repo and re-installing all packages

Configuration:

  • RN v0.46.4
  • react-native-simple-store v1.3.0

@y2k-shubham thanks for the replication steps and reporting this issue. Can you post some code that you are seeing this issue with? It can be the different pieces of your code as it sounds like the bug is happening after some time.

Thanks!

Going to close this issue due to lack of activity. @y2k-shubham if this is still an issue for you comment back and we can reopen it and do some more diagnosing.