sanity-io/client

Sanity CMS with React Native not updating app contents immediately.

YashMaurya9274 opened this issue · 0 comments

Hey everyone, I'm using Sanity CMS as a backend for my React Native application, but I come across a problem i.e. sanity client not updating app contents whenever a change is made from the app.

For eg. whenever a post is created from the app it is immediately created in the sanity desk but it takes too long to update it on the app and it is same in case of deletion of a post. It takes at least 45 seconds or a minute to update the app contents. Is there any way to get the data from sanity and update the app contents as soon as the post is created, updated or deleted in the sanity desk ?

PS: I've already used useCdn: true and sanityClient.listen() in my code, but there is no change I could see in the app's behavior.