Fork me on GitHub
#cljsrn
<
2018-11-05
>
myguidingstar18:11:17

hi all, what libraries do you recommend for data persistence (just Clojurescript app state) in react native app? I guess performance should be a concern

vikeri18:11:36

Either http://realm.io (slow to read in dev mode but faster in general) or just plain AsyncStorage

vikeri18:11:06

Even though it’s bad practice it’s very nice to serialize the data with transit since it’s much faster than pr-str

danielneal22:11:32

@vikeri how come that's bad practice?

danielneal22:11:40

I've been using async storage + transit 🙃

joshmiller23:11:06

I have a post a couple days back about using UserDefaults to store data, but it’s iOS-only. If I were working cross-platform I’d just use AsyncStorage and pr-str/`read-string`. I’ve never seen any performance problems with them, but I’m not storing MB of data either.