UNPKG

optimism

Version:

Composable reactive caching with efficient invalidation.

17 lines (13 loc) 357 B
import { Slot } from "@wry/context"; import { AnyEntry } from "./entry.js"; export const parentEntrySlot = new Slot<AnyEntry | undefined>(); export function nonReactive<R>(fn: () => R): R { return parentEntrySlot.withValue(void 0, fn); } export { Slot } export { bind as bindContext, noContext, setTimeout, asyncFromGen, } from "@wry/context";