-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efa53a5
commit 8fb2bbc
Showing
6 changed files
with
23 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/next/src/server/app-render/after-task-async-storage-instance.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import type { AfterTaskAsyncStorage } from './after-task-async-storage.external' | ||
import { createAsyncLocalStorage } from './async-local-storage' | ||
|
||
export const _afterTaskAsyncStorage: AfterTaskAsyncStorage = | ||
createAsyncLocalStorage() |
13 changes: 13 additions & 0 deletions
13
packages/next/src/server/app-render/after-task-async-storage.external.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { AsyncLocalStorage } from 'async_hooks' | ||
|
||
// Share the instance module in the next-shared layer | ||
import { _afterTaskAsyncStorage as afterTaskAsyncStorage } from './after-task-async-storage-instance' with { 'turbopack-transition': 'next-shared' } | ||
import type { WorkUnitStore } from './work-unit-async-storage.external' | ||
|
||
export interface AfterTaskStore { | ||
readonly phase: WorkUnitStore['phase'] | ||
} | ||
|
||
export type AfterTaskAsyncStorage = AsyncLocalStorage<AfterTaskStore> | ||
|
||
export { afterTaskAsyncStorage } |
5 changes: 0 additions & 5 deletions
5
packages/next/src/server/app-render/work-unit-snapshot-async-storage-instance.ts
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
packages/next/src/server/app-render/work-unit-snapshot-async-storage.external.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters