MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / batchedCallback

Function batchedCallback

packages/shared/src/primitives.ts:30–31  ·  view source on GitHub ↗
(fn: Fn)

Source from the content-addressed store, hash-verified

28 ((...a: Parameters<Fn>) => untrack<ReturnType<Fn>>(fn.bind(void 0, ...a))) as any
29
30export const batchedCallback = <Fn extends AnyFunction>(fn: Fn): Fn =>
31 ((...a: Parameters<Fn>) => batch<ReturnType<Fn>>(fn.bind(void 0, ...a))) as any
32
33export const useIsTouch = createSingletonRoot(() => createMediaQuery('(hover: none)'))
34export const useIsMobile = createSingletonRoot(() => createMediaQuery('(max-width: 640px)'))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…