prismicio-community / php-kit

Community maintained development kit for Prismic and the PHP language
https://prismic.io
Other
108 stars 82 forks source link

Deprecate preview resolver #169

Open phillysnow opened 4 years ago

phillysnow commented 4 years ago

Can we create a preview token parsing function that doesn't use the unreliable mainDocument?

Like we now do in the javascript kit: https://github.com/prismicio/prismic-javascript/blob/36670cff4e687d04018c3cffe3ccfb44ad8b2c90/src/client.ts#L73

pvpg commented 4 years ago

Here's a related forum thread: https://community.prismic.io/t/bug-preview-only-works-half-the-time/1232/4