Releases: sanity-io/preview-kit
Releases · sanity-io/preview-kit
v2.2.4
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.1
v2.1.0
v2.0.0
2.0.0 (2023-06-09)
⚠ BREAKING CHANGES
definePreview
and<PreviewSuspense>
are replaced by<GroqStoreProvider>
.usePreview
is replaced byuseListeningQuery
.@sanity/client
is now a peer dependency.
The migration guide outlines every breaking change and how to migrate your code
Features
- Live previews are now easier to build, have a much shorter bootup time and you no longer need separate preview versions of components as
useListeningQuery
can be disabled for production modes. token
are set in a single location,<GroqStoreProvider>
, instead of prop-drilled to every preview component.Suspense
boundaries now optional, you only need them if you're code-splittingGroqStoreProvider
withReact.lazy
Bug Fixes
- Preview hooks no longer perform queries while the initial dataset export is streaming, as this could lead to incomplete query results and unexpected cases of
null
.
This release is also available on: