Hi, very nice article, I'm trying to implement the real time update but it seems that the listener only reacts when I actually save the document, it does not emit an event when the content changes. Maybe something changed inside the client library? Have you experienced it? Thanks!
Like I mentioned in my post, I'm not really convinced by this approach for real-time live preview. The team at Sanity recently released a better real-time preview mode for Next.js which uses the @sanity/groq-store package under hood.
Hoping that next year we can get a similar library for Nuxt.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, very nice article, I'm trying to implement the real time update but it seems that the listener only reacts when I actually save the document, it does not emit an event when the content changes. Maybe something changed inside the client library? Have you experienced it? Thanks!
Hey! I'm glad to know that my article was useful for you.
Maybe it's necessary to order the documents to be sure to get the draft first, like this:
Like I mentioned in my post, I'm not really convinced by this approach for real-time live preview. The team at Sanity recently released a better real-time preview mode for Next.js which uses the @sanity/groq-store package under hood.
Hoping that next year we can get a similar library for Nuxt.