gatsby-source-prismic
v3 introduced a client-side preview system that
integrates with Prismic's REST API via prismic-javascript
.
The core APIs powering previews is the new usePrismicPreview
hook and
mergePrismicPreviewData
utility function. Under the hood, usePrismicPreview
fetches preview data and runs it through the same data transformers used in the
source plugin at build-time.