Preview of document types

This commit is contained in:
Henrik Larsson 2023-08-21 11:24:25 +02:00
parent 94b54cf6ed
commit 028db7375d

View File

@ -6,7 +6,7 @@ import { suspend } from 'suspend-react';
const LiveQueryProvider = dynamic(() => import('next-sanity/preview')); const LiveQueryProvider = dynamic(() => import('next-sanity/preview'));
// suspend-react cache is global, so we use a unique key to avoid collisions // suspend-react cache is global, so we use a unique key to avoid collisions
const UniqueKey = Symbol('lib/sanity.client'); const UniqueKey = Symbol('@/lib/sanity/sanity.client');
export default function PreviewProvider({ export default function PreviewProvider({
children, children,