Skip to main content

injectEntityStore

Surgical, reactive entity management store with strict immutability (Freeze-on-Write) and optional L2 storage persistence. Now with batch write debouncing and easy patch/update API.

TypeScriptexample.ts
import { injectEntityStore } from '@angular-helpers/storage'

EntityStoreOptions<Id, Entity>

Configuration options for injectEntityStore / EntityStore.

PropertyTypeDescription
idKeykeyof Entity | ((entity: Entity) => Id)Unique identifier key or custom resolver function.
persistKey?stringIf provided, synchronizes the collection to this L2 storage key.
LCP N/A
CLS N/A
INP N/A