UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

17 lines (14 loc) 286 B
import {createContext} from 'sanity/_createContext' /** * @internal */ export interface DocumentIdContextValue { id: string } /** * @internal */ export const DocumentIdContext = createContext<DocumentIdContextValue | null>( 'sanity/_singletons/context/document-id', null, )