MCPcopy Create free account
hub / github.com/middleapi/orpc / onStartDeferred

Function onStartDeferred

packages/react/src/deferred-interceptors.ts:6–12  ·  view source on GitHub ↗
(callback, ...rest)

Source from the content-addressed store, hash-verified

4 * Like `onStart`, but defers execution, useful for updating states.
5 */
6export const onStartDeferred: typeof onStart = (callback, ...rest) => {
7 return onStart((...args) => {
8 setTimeout(() => {
9 callback(...args)
10 }, 6)
11 }, ...rest)
12}
13
14/**
15 * Like `onSuccess`, but defers execution, useful for updating states.

Callers 1

Calls 2

onStartFunction · 0.90
callbackFunction · 0.85

Tested by

no test coverage detected