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

12 lines (9 loc) 285 B
import {useMemo} from 'react' import {Subject} from 'rxjs' import {type PathSyncChannel, type PathSyncState} from '../types/pathSyncChannel' /** * @internal */ export function useCreatePathSyncChannel(): PathSyncChannel { return useMemo(() => new Subject<PathSyncState>(), []) }