injectYjsIndexeddb

Persists a Y.Doc to local IndexedDB storage using y-indexeddb. Exposes reactive isHydrated, isHydrating, and synced Signals to easily guard SSR hydration and @defer blocks.

TypeScriptexample.ts
import { injectYjsIndexeddb } from '@angular-helpers/yjs'

# Properties

FieldTypeDescription
namestringIndexedDB key identifier name.
docY.DocTarget Y.Doc instance.
LCP N/A
CLS N/A
INP N/A