MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getIndexesIds

Function getIndexesIds

src/ui-svelte/functions.svelte.ts:621–634  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619 getProvidedThing(id, OFFSET_INDEXES) as Indexes | undefined;
620
621export const getIndexesIds = (): {readonly current: Ids} => {
622 const contextValue = getContextValue();
623 let ids = $state<Ids>(getThingIds(contextValue, OFFSET_INDEXES));
624 if (hasWindow()) {
625 $effect(() => {
626 ids = getThingIds(contextValue, OFFSET_INDEXES);
627 });
628 }
629 return {
630 get current() {
631 return ids;
632 },
633 };
634};
635
636export const getIndexIds = (
637 indexesOrIndexesId?: MaybeGetter<Indexes | Id | undefined>,

Callers

nothing calls this directly

Calls 3

hasWindowFunction · 0.90
getContextValueFunction · 0.70
getThingIdsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…