(id, offset)
| 124 | GLOBAL[TINYBASE_CONTEXT] |
| 125 | ) : GLOBAL[TINYBASE_CONTEXT] = createContext([]); |
| 126 | var useThing = (id, offset) => { |
| 127 | const contextValue = useContext(Context); |
| 128 | return isUndefined(id) ? contextValue[offset * 2] : isString(id) ? objGet(contextValue[offset * 2 + 1], id) : id; |
| 129 | }; |
| 130 | var useThings = (offset) => ({ ...useContext(Context)[offset * 2 + 1] }); |
| 131 | var useThingOrThingById = (thingOrThingId, offset) => { |
| 132 | const thing = useThing(thingOrThingId, offset); |
no test coverage detected
searching dependent graphs…