MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getQueriesIds

Function getQueriesIds

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

Source from the content-addressed store, hash-verified

680 getProvidedThing(id, OFFSET_QUERIES) as Queries | undefined;
681
682export const getQueriesIds = (): {readonly current: Ids} => {
683 const contextValue = getContextValue();
684 let ids = $state<Ids>(getThingIds(contextValue, OFFSET_QUERIES));
685 if (hasWindow()) {
686 $effect(() => {
687 ids = getThingIds(contextValue, OFFSET_QUERIES);
688 });
689 }
690 return {
691 get current() {
692 return ids;
693 },
694 };
695};
696
697export const getQueryIds = (
698 queriesOrQueriesId?: MaybeGetter<Queries | 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…