nionata / grapevine

Anonymous proximity-based gossip messaging mobile application
1 stars 0 forks source link

Local persistence #21

Closed nionata closed 2 years ago

nionata commented 2 years ago
nionata commented 2 years ago

AsyncStorage by React Native has been deprecated. It looks like this community package is the go to.

nionata commented 2 years ago

Thinking through the interplay between persisting data and keeping the state hydrated. We should persist data first. From there we can hydrate state. I figure we can initially just have a tickler that will pull these values from local/remote storage and set the state. If this doesn't give us enough of a realtime feel, we can do it after every write op. However, I reckon this could get abused.