(thingId: Id, thing: any, offset: number)
| 1560 | ); |
| 1561 | |
| 1562 | const 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 | |
| 1572 | export const provideStore = (storeId: Id, store: Store): void => |
| 1573 | provideThing(storeId, store, OFFSET_STORE); |
no test coverage detected
searching dependent graphs…