Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 23, 2024
1 parent 0b843ba commit 4059eb0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ createNextDescribe(
({ next }) => {
// experimental react is having issues with this use effect
// @acdlite will take a look
// TODO: remove this after react fixes the issue in experimental build.
if (process.env.__NEXT_EXPERIMENTAL_PPR) {
it('skip test for PPR', () => {})
return
Expand Down
9 changes: 7 additions & 2 deletions test/e2e/app-dir/navigation/navigation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ createNextDescribe(
{
files: __dirname,
},
({ next, isNextDev, isNextDeploy, isNextStart }) => {
({ next, isNextDev, isNextDeploy }) => {
describe('query string', () => {
it('should set query correctly', async () => {
const browser = await next.browser('/')
Expand Down Expand Up @@ -81,7 +81,12 @@ createNextDescribe(
pathname: '/search-params/foo',
// App Router doesn't re-render on initial load (the params are baked
// server side). In development, effects will render twice.
waitForNEffects: isNextDev ? 2 : 1,

// experimental react is having issues with this use effect
// @acdlite will take a look
// TODO: remove this PPR cond after react fixes the issue in experimental build.
waitForNEffects:
isNextDev && !process.env.__NEXT_EXPERIMENTAL_PPR ? 2 : 1,
},
{
router: 'pages',
Expand Down

0 comments on commit 4059eb0

Please sign in to comment.