- useEntries<TKey, TValue>(): undefined | [TKey, TValue][]
Type Parameters
- TKey = unknown
- TValue = unknown
Returns undefined | [TKey, TValue][]
Entries as array from the reactive collection, or undefined if no collection provided.
- useEntries<TKey, TValue>(col, eagerOrConfig?): [TKey, TValue][]
Parameters
- col: ReadonlyVal<{
entries(): Iterable<[TKey, TValue]>;
}> | {
$: ReadonlyVal<{
entries(): Iterable<[TKey, TValue]>;
}>;
} Optional
eagerOrConfig: boolean | ValConfig<[TKey, TValue][]>
Entries as array from the reactive collection.
- useEntries<TKey, TValue>(col?, eagerOrConfig?): undefined | [TKey, TValue][]
Parameters
Optional
col: ReadonlyVal<{
entries(): Iterable<[TKey, TValue]>;
}> | {
$: ReadonlyVal<{
entries(): Iterable<[TKey, TValue]>;
}>;
}Optional
eagerOrConfig: boolean | ValConfig<[TKey, TValue][]>
Returns undefined | [TKey, TValue][]
Entries as array from the reactive collection, or undefined if no collection provided.
Get entries as array from reactive collection.