Skip to content

Commit f7339e6

Browse files
authored
Merge pull request #4 from vordgi/nc-1
nc-1 update deps and types
2 parents 5432a1d + 417b323 commit f7339e6

File tree

5 files changed

+348
-5
lines changed

5 files changed

+348
-5
lines changed

package/env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="react/experimental" />

package/src/create-server-context.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function createServerContext<T>(defaultValue?: T): ServerContext<T> {
1515
const storage: ServerContext<T>["_storage"] = new AsyncLocalStorage<{ value: T }>();
1616

1717
return {
18-
Provider: ({ children, value }) => {
18+
// The provider must always be asynchronous
19+
Provider: async ({ children, value }) => {
1920
return (
2021
<>
2122
<Enter storage={storage} value={value} />

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"dependencies": {
1111
"@nimpl/context": "link:../../package",
1212
"next": "latest",
13-
"react": "^18.2.0",
14-
"react-dom": "^18.2.0"
13+
"react": "latest",
14+
"react-dom": "latest"
1515
},
1616
"devDependencies": {
1717
"@playwright/test": "1.40.1",

tests/base/pnpm-lock.yaml

Lines changed: 341 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)