( offset: Offsets, )
| 106 | }; |
| 107 | |
| 108 | export const useThings = <UsedThing extends Thing>( |
| 109 | offset: Offsets, |
| 110 | ): Accessor<IdObj<UsedThing>> => { |
| 111 | const contextValue = useContext(Context)?.value ?? EMPTY_CONTEXT; |
| 112 | return () => ({...contextValue()[offset * 2 + 1]}) as IdObj<UsedThing>; |
| 113 | }; |
| 114 | |
| 115 | export const useThingOrThingById = < |
| 116 | UsedThing extends |
no outgoing calls
no test coverage detected
searching dependent graphs…