jarod
(jarod-treble Hargreaves)
November 9, 2022, 12:13pm
1
Hello,
I'm seeing a new issue with Prismic Previews, using the Nuxt implementation.
To reproduce:
Click into a document in the Prismic CMS
Click preview
Website opens and navigates to the document's page
Make a change in the CMS and save
Website updates content to match saved document
Make another change and save
Website does not update
This is happening on all three of our Prismic-based sites on Chrome. It happens both in a local environment and hosted on Cloudflare Pages.
Previously the websites did update content every time the document was saved, so I'm not sure what has changed here!
Is there something I'm missing? Has anything changed that we need to update on our end?
Happy to provide details of sites, repos etc in private messages.
Thank you!
p.s. I have added both prismic.io and our websites to "Sites that can always use cookies" in Chrome's settings and unfortunately that hasn't helped
Pau
November 9, 2022, 6:40pm
3
Hey @jarod , that's odd. The newest version of the toolbar accepts preview reloads on Nuxt. Which version of the kit are you using?
jarod
(jarod-treble Hargreaves)
November 9, 2022, 7:00pm
4
Hi Pau, we're on "@nuxtjs/prismic": "^1.4.2"
, which looks like the latest package.
What seems most strange is that the preview reloads once, and then not again until the page is manually reloaded!
Pau
November 10, 2022, 6:13pm
5
Is it possible that there's a setup in your project that clears the preview cookie after the first session is started?
jarod
(jarod-treble Hargreaves)
November 11, 2022, 9:41am
6
Unfortunately not, I can see the cookie is still there after the session is started. It looks like we just stop pinging for content after the first update — see the network trace here:
Those pings are from the Prismic toolbar iframe, and the v2
line is where a document is saved on the CMS side and content is refreshed. There's then no more pings coming from the Prismic toolbar, but it's still visible on-screen
I'm digging around in our code but can't see anything that's changed in our implementation of the toolbar in the last month or so!
Pau
November 11, 2022, 10:33pm
7
Hello everyone. We found the root case of the issue and are now working on a fix.
We'll update this same thread when we have updates.
Thanks
1 Like
jarod
(jarod-treble Hargreaves)
November 23, 2022, 3:22pm
10
Hi @Pau , is there any ETA on a fix for this?
Cheers,
Jarod
Pau
November 23, 2022, 10:30pm
11
Hello @jarod , we released a fix for this issue. Don't hesitate to get in touch with us if this ever occurs again.
1 Like