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

Function provideThing

src/ui-svelte/functions.svelte.ts:1562–1570  ·  view source on GitHub ↗
(thingId: Id, thing: any, offset: number)

Source from the content-addressed store, hash-verified

1560 );
1561
1562const provideThing = (thingId: Id, thing: any, offset: number): void => {
1563 const contextValue = getContextValue();
1564 if (hasWindow()) {
1565 $effect(() => {
1566 contextValue[16]?.(offset, thingId, thing);
1567 return () => contextValue[17]?.(offset, thingId);
1568 });
1569 }
1570};
1571
1572export const provideStore = (storeId: Id, store: Store): void =>
1573 provideThing(storeId, store, OFFSET_STORE);

Callers 8

provideStoreFunction · 0.70
provideMetricsFunction · 0.70
provideIndexesFunction · 0.70
provideRelationshipsFunction · 0.70
provideQueriesFunction · 0.70
provideCheckpointsFunction · 0.70
providePersisterFunction · 0.70
provideSynchronizerFunction · 0.70

Calls 2

hasWindowFunction · 0.90
getContextValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…