Previewing updated content requires closing open tab

I am experiencing an issue with Previewing drafts in my local development environment. The following is what is occurring:

  • Load a document in Prismic and hit the preview which opens up my localhost preview (the site is already running in development mode on my machine)
  • The preview opens and everything loads and looks the way I expect it to
  • Go back to Prismic, change some content, save the draft and click preview again
  • Focus changes to the previously open preview tab, the page reloads but the content is not updated

The only way to see new content updates to the draft is to close out the previously opened preview tab and then click the preview again from Prismic backend.

Please let me know if there is something that needs to be changed with my setup or if this is a bug with Prismic.

Hello Brian,

Welcome to the Prismic community and thanks for reaching out to us.

Could you try to clear your cookies and try it again? Do you get any errors on the console?