How to handle cache persist?

I’m using apollo on my react native app every time I open the app it fetches the data and clears on app close I don’t persist cache, How I’m able to persist cache and update on new data. something similar to Twitter app for Instagram

Hi @chawki, here’s a good sample React Native app that uses caching.

In general, the default fetch policy (cache-first) should work great for most use cases. Take a look at all the other available fetch policies here and you can choose the one that best fits your needs.

1 Like