Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Issue with flickering previews in Slack thread, resolved by changing implementation.

8 replies
Last updated: Sep 7, 2023
Can anyone confirm if previews are supposed to flicker like this or if i'm doing something wrong (using the iframe plugin for previews, with the app router):
Sep 7, 2023, 10:27 AM
It's doing a full refresh it seems rather than hot reloading
Sep 7, 2023, 10:28 AM
maybe you are returning null if the data is not there?
Sep 7, 2023, 10:36 AM
Right - that helps. Less flickery. Do you know if the page should still fully refresh to show the content?
Sep 7, 2023, 10:52 AM
I was expecting a hot reload content swap
Sep 7, 2023, 10:52 AM
Sep 7, 2023, 11:41 AM
Yes. I just changed my implementation from that to the one here https://www.sanity.io/guides/nextjs-app-router-live-preview and it works correctly now
Sep 7, 2023, 12:35 PM
Thanks for your help
Sep 7, 2023, 12:36 PM
No problem!
Sep 7, 2023, 1:46 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?