EMPTY_NESTED
const
Composables & Internals
No-op implementation of TNestedProvide injected when a component is used outside a nested context (e.g. OrigamList without a parent OrigamList). Prevents undefined-access errors on the nested tree API.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- id: shallowRef()
- root: { register: () => null, unregister: () => null, parents: ref(new Map()), children: ref(new Map()), open: () => null, openOnSelect: () => null, select: () => null, opened: ref(new Set()), selected: ref(new Map()), selectedValues: ref([]) }
Ecosystem
Used by
Composables and components that consume this constant.
useNested
OrigamList
OrigamTreeview
ORIGAM_NESTED_KEY
Usage
Examples
Ready-to-paste code snippets using this constant.
Injecting the empty nested context