MCPcopy
hub / github.com/vueuse/vueuse / tryOnScopeDispose

Function tryOnScopeDispose

packages/shared/tryOnScopeDispose/index.ts:9–15  ·  view source on GitHub ↗
(fn: Fn, failSilently?: boolean)

Source from the content-addressed store, hash-verified

7 * @param fn
8 */
9export function tryOnScopeDispose(fn: Fn, failSilently?: boolean): boolean {
10 if (getCurrentScope()) {
11 onScopeDispose(fn, failSilently)
12 return true
13 }
14 return false
15}

Callers 15

useIpcRendererOnFunction · 0.90
useWebWorkerFunction · 0.90
useBroadcastChannelFunction · 0.90
useBluetoothFunction · 0.90
useIntersectionObserverFunction · 0.90
useMediaControlsFunction · 0.90
useTimeoutPollFunction · 0.90
useScrollLockFunction · 0.90
useResizeObserverFunction · 0.90
useSpeechSynthesisFunction · 0.90
useEventSourceFunction · 0.90
useWebSocketFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected