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

Function getStoreIds

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

Source from the content-addressed store, hash-verified

567 getProvidedThing(id, OFFSET_STORE) as Store | undefined;
568
569export const getStoreIds = (): {readonly current: Ids} => {
570 const contextValue = getContextValue();
571 let ids = $state<Ids>(getThingIds(contextValue, OFFSET_STORE));
572 if (hasWindow()) {
573 $effect(() => {
574 ids = getThingIds(contextValue, OFFSET_STORE);
575 });
576 }
577 return {
578 get current() {
579 return ids;
580 },
581 };
582};
583
584export const getMetrics = (id?: Id): Metrics | undefined =>
585 getProvidedThing(id, OFFSET_METRICS) as Metrics | 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…