morrys / wora

Write Once, Render Anywhere. typescript libraries: cache-persist, apollo-offline, relay-offline, offline-first, apollo-cache, relay-store, netinfo, detect-network
https://morrys.github.io/wora/docs/introduction
MIT License
174 stars 4 forks source link

AsyncStorage running out of space? #98

Open isocra opened 3 years ago

isocra commented 3 years ago

Hi @morrys

You helped me last year set up a connection to AWS Amplify and Apollo using your ApolloClient and ApolloCache in Expo and it's been working well.

However, I'm getting the following errors in production database or disk is full (code 13 SQLITE_FULL[13]), from AsyncStorage.

I thought that maybe they're coming from a different part of the app, but I've mostly ruled that out. Do you think it's likely to be coming from the ApolloCache? Are there any alternatives to using AsyncStorage in React Native (specifically Expo managed)?

Thanks!

morrys commented 3 years ago

Hi @isocra, have you tried this https://github.com/react-native-async-storage/async-storage/issues/427?

If you need more space instead, there are alternative storage to my knowledge but honestly I don't have much experience with expo / react-native storage :/

At the moment, wora/cache-persist supports out-of-the-box only AsyncStorage but I have no problem helping you to create the necessary layer to support others (see for example IndexedDB, AsyncStorage)