Skip to main content
cngx-src documentation

LocalItemsBuffer

Interface

projects/forms/select/shared/local-items-buffer.ts

Import#

import { LocalItemsBuffer } from '@cngx/forms/select'

Description#

Append-only buffer for locally-patched options. mergeLocalItems folds it onto server options inside createSelectCore.effectiveOptions and drops entries matching a server value - quick-create items disappear once the backend catches up. Consumer clears explicitly via LocalItemsBuffer.clear; no auto-clear on state refresh.

Index#

Properties

Instance Properties#

Readonly

Identity-stable until mutated.

Methods#

clear#void

Idempotent - no emit when already empty.

patch#void
patch(item: CngxSelectOptionDef<T>)

No-op when an entry matches item.value under current compareWith.