Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2c6b7dcd
Unverified
Commit
2c6b7dcd
authored
Jul 06, 2025
by
Josh Story
Committed by
GitHub
Jul 06, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverts test copy change in dynamicIO tests (#81358)
test copy was accidentally changed in #81258. this reverts it
parent
39f5d0f3
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
31 deletions
+15
-31
page.tsx
...tures/lazy-module-init/app/serial-client-sync-io/page.tsx
+7
-8
client-lazy-now-1.ts
...fixtures/lazy-module-init/app/server/client-lazy-now-1.ts
+0
-3
client-lazy-now-2.ts
...fixtures/lazy-module-init/app/server/client-lazy-now-2.ts
+0
-3
client-lazy-now-3.ts
...fixtures/lazy-module-init/app/server/client-lazy-now-3.ts
+0
-3
indirection.tsx
...rors/fixtures/lazy-module-init/app/server/indirection.tsx
+0
-7
page.tsx
...c-io-errors/fixtures/lazy-module-init/app/server/page.tsx
+8
-7
No files found.
test/e2e/app-dir/dynamic-io-errors/fixtures/lazy-module-init/app/serial-client-sync-io/page.tsx
View file @
2c6b7dcd
...
...
@@ -8,14 +8,13 @@ export default async function Page() {
return
(
<>
<
p
>
This page requires a module lazily during rendering. The Module computes
a "static" id using the current time and a random number. If these APIs
are used while prerendering they would normally trigger a synchronous
dynamic bailout. However since these APIs are used in module scope they
are not semantically part of the render and should be usable like other
"static" values. We demonstrate this with this fixture by asserting that
this page still produces a static result and it does not warn for
reading current time and random in a prerender.
This page has several client modules that have sync IO in the module
scope that will run in serial when prerendering to HTML. The point of
this test is to assert that the serial nature does not lead to
unexpected sync IO errors. In the past this particular setup would show
up as a sync IO error because the later modules did not initialize
during the prospective render and thus appeared to use sync IO when
being initialized during the final render.
</
p
>
<
BuildID
/>
<
Indirection
>
...
...
test/e2e/app-dir/dynamic-io-errors/fixtures/lazy-module-init/app/server/client-lazy-now-1.ts
deleted
100644 → 0
View file @
39f5d0f3
'use client'
export
const
date
=
Date
.
now
()
test/e2e/app-dir/dynamic-io-errors/fixtures/lazy-module-init/app/server/client-lazy-now-2.ts
deleted
100644 → 0
View file @
39f5d0f3
'use client'
export
const
date
=
Date
.
now
()
test/e2e/app-dir/dynamic-io-errors/fixtures/lazy-module-init/app/server/client-lazy-now-3.ts
deleted
100644 → 0
View file @
39f5d0f3
'use client'
export
const
date
=
Date
.
now
()
test/e2e/app-dir/dynamic-io-errors/fixtures/lazy-module-init/app/server/indirection.tsx
deleted
100644 → 0
View file @
39f5d0f3
export
default
async
function
Indirection
({
children
,
}:
{
children
:
React
.
ReactNode
})
{
return
children
}
test/e2e/app-dir/dynamic-io-errors/fixtures/lazy-module-init/app/server/page.tsx
View file @
2c6b7dcd
...
...
@@ -4,13 +4,14 @@ export default async function Page() {
return
(
<>
<
p
>
This page has several client modules that have sync IO in the module
scope that will run in serial when prerendering to HTML. The point of
this test is to assert that the serial nature does not lead to
unexpected sync IO errors. In the past this particular setup would show
up as a sync IO error because the later modules did not initialize
during the prospective render and thus appeared to use sync IO when
being initialized during the final render.
This page requires a module lazily during rendering. The Module computes
a "static" id using the current time and a random number. If these APIs
are used while prerendering they would normally trigger a synchronous
dynamic bailout. However since these APIs are used in module scope they
are not semantically part of the render and should be usable like other
"static" values. We demonstrate this with this fixture by asserting that
this page still produces a static result and it does not warn for
reading current time and random in a prerender.
</
p
>
<
BuildID
/>
</>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment