File tree 4 files changed +42
-2
lines changed
4 files changed +42
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ export default defineConfig({
24
24
env : {
25
25
basePath,
26
26
windowHistorySupport,
27
- supportsShallowRouting : supportsShallowRouting ( nextJsVersion )
27
+ supportsShallowRouting : supportsShallowRouting ( nextJsVersion ) ,
28
+ nextJsVersion
28
29
}
29
30
}
30
31
} )
Original file line number Diff line number Diff line change 1
1
/// <reference types="cypress" />
2
2
3
- it . only ( 'repro-359' , ( ) => {
3
+ it ( 'repro-359' , ( ) => {
4
4
cy . visit ( '/app/repro-359' )
5
5
cy . contains ( '#hydration-marker' , 'hydrated' ) . should ( 'be.hidden' )
6
6
Original file line number Diff line number Diff line change
1
+ /// <reference types="cypress" />
2
+
3
+ if (
4
+ Cypress . env ( 'windowHistorySupport' ) !== 'true' &&
5
+ Cypress . env ( 'nextJsVersion' ) !== '14.1.0' // See issue #498
6
+ ) {
7
+ it ( 'Reproduction for issue #498' , ( ) => {
8
+ cy . config ( 'retries' , 0 )
9
+ cy . visit ( '/app/repro-498' )
10
+ cy . contains ( '#hydration-marker' , 'hydrated' ) . should ( 'be.hidden' )
11
+ cy . get ( '#start' ) . click ( )
12
+ cy . location ( 'hash' ) . should ( 'eq' , '#section' )
13
+ cy . get ( 'button' ) . click ( )
14
+ cy . location ( 'search' ) . should ( 'eq' , '?q=test' )
15
+ cy . location ( 'hash' ) . should ( 'eq' , '#section' )
16
+ } )
17
+ }
Original file line number Diff line number Diff line change
1
+ 'use client'
2
+
3
+ import { useQueryState } from 'nuqs'
4
+ import { Suspense } from 'react'
5
+
6
+ export default function Page ( ) {
7
+ return (
8
+ < main >
9
+ < a id = "start" href = "#section" >
10
+ Apply fragment
11
+ </ a >
12
+ < Suspense >
13
+ < Client />
14
+ </ Suspense >
15
+ </ main >
16
+ )
17
+ }
18
+
19
+ function Client ( ) {
20
+ const [ , set ] = useQueryState ( 'q' )
21
+ return < button onClick = { ( ) => set ( 'test' ) } > Set query</ button >
22
+ }
You can’t perform that action at this time.
0 commit comments