MCPcopy
hub / github.com/soybeanjs/soybean-admin / useLoading

Function useLoading

packages/hooks/src/use-loading.ts:8–16  ·  view source on GitHub ↗
(initValue = false)

Source from the content-addressed store, hash-verified

6 * @param initValue Init value
7 */
8export default function useLoading(initValue = false) {
9 const { bool: loading, setTrue: startLoading, setFalse: endLoading } = useBoolean(initValue);
10
11 return {
12 loading,
13 startLoading,
14 endLoading
15 };
16}

Callers 4

index.tsFile · 0.90
useCaptchaFunction · 0.90
useTableFunction · 0.85
createHookRequestFunction · 0.85

Calls 1

useBooleanFunction · 0.85

Tested by

no test coverage detected