(id2, offset)
| 120 | GLOBAL_CONTEXT[TINYBASE_CONTEXT] |
| 121 | ) : GLOBAL_CONTEXT[TINYBASE_CONTEXT] = createContext(EMPTY_CONTEXT_VALUE); |
| 122 | var useThing = (id2, offset) => { |
| 123 | const contextValue = useContext(Context)?.value ?? EMPTY_CONTEXT$1; |
| 124 | return () => { |
| 125 | const resolvedContextValue = contextValue(); |
| 126 | const resolvedId = getValue(id2); |
| 127 | return isUndefined(resolvedId) ? resolvedContextValue[offset * 2] : isString(resolvedId) ? objGet(resolvedContextValue[offset * 2 + 1], resolvedId) : resolvedId; |
| 128 | }; |
| 129 | }; |
| 130 | var useThingOrThingById = (thingOrThingId, offset) => { |
| 131 | const thing = useThing(thingOrThingId, offset); |
| 132 | return () => { |
no test coverage detected
searching dependent graphs…