MCPcopy Create free account
hub / github.com/Botloader/botloader / useFetchedDataBehindGuard

Function useFetchedDataBehindGuard

frontend/src/components/FetchData.tsx:152–154  ·  view source on GitHub ↗
(context: React.Context<FetchDataHook<T>>)

Source from the content-addressed store, hash-verified

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

Callers 15

ListScriptsFunction · 0.90
EditPluginPageFunction · 0.90
EditPluginMetaFormFunction · 0.90
ScriptPluginSettingsFunction · 0.90
IconDialogFunction · 0.90
ShowcaseImagesFunction · 0.90
UploadImageFunction · 0.90
BannerImageFunction · 0.90
EditPluginScriptPageFunction · 0.90
InnerPageFunction · 0.90
PremiumSlotComponentFunction · 0.90
InnerPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected