(context: React.Context<FetchDataHook<T>>)
| 150 | } |
| 151 | |
| 152 | export function useFetchedDataBehindGuard<T>(context: React.Context<FetchDataHook<T>>): FetchDataHook<T, true> { |
| 153 | return useContext(context) as FetchDataHook<T, true> |
| 154 | } |
| 155 | |
| 156 | export function FetchDataGuard<T>(props: { context: React.Context<FetchDataHook<T>>, children: ReactNode }) { |
| 157 | let hook = useFetchedData(props.context); |
no outgoing calls
no test coverage detected