initial update
This commit is contained in:
16
node_modules/optimism/src/context.ts
generated
vendored
Normal file
16
node_modules/optimism/src/context.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
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";
|
||||
Reference in New Issue
Block a user