MCPcopy Create free account
hub / github.com/effect-app/libs / isStaleResult

Function isStaleResult

packages/vue/src/atomQuery.ts:294–303  ·  view source on GitHub ↗
(r: AsyncResult.AsyncResult<any, any>, staleTimeMs: number)

Source from the content-addressed store, hash-verified

292): Effect.Effect<void> =>
293 Effect.currentParentSpan.pipe(
294 Effect.tap((span) => Effect.sync(() => setAtomQueryParentSpan(atom, span))),
295 Effect.ignore
296 )
297
298export const refreshAtomWithCurrentSpan = <A, E>(
299 registry: AtomRegistry.AtomRegistry,
300 atom: Atom.Atom<AsyncResult.AsyncResult<A, E>>
301): Effect.Effect<void> =>
302 captureAtomQueryParentSpan(atom).pipe(
303 Effect.andThen(Effect.sync(() => registry.refresh(atom)))
304 )
305
306const setAtomQueryMetadata = <A, E>(

Callers 1

makeQueryViewFunction · 0.90

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…