Skip to content

Commit

Permalink
Reexport Slot so consumers need not import it from @wry/context (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn authored Nov 28, 2023
1 parent 52f39d3 commit 1c3a4c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export function nonReactive<R>(fn: () => R): R {
return parentEntrySlot.withValue(void 0, fn);
}

export { Slot }
export {
bind as bindContext,
noContext,
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export {
nonReactive,
setTimeout,
asyncFromGen,
Slot,
} from "./context.js";

// A lighter-weight dependency, similar to OptimisticWrapperFunction, except
Expand Down
2 changes: 1 addition & 1 deletion src/tests/context.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Slot } from "@wry/context";
import * as assert from "assert";
import {
wrap,
setTimeout,
asyncFromGen,
noContext,
nonReactive,
Slot,
} from '../index.js';

describe("asyncFromGen", function () {
Expand Down

0 comments on commit 1c3a4c1

Please sign in to comment.