File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -768,7 +768,7 @@ export const new_createPages = <
768
768
}
769
769
return paths ;
770
770
} ,
771
- renderRoute : async ( path ) => {
771
+ renderRoute : async ( path , { query } ) => {
772
772
await configure ( ) ;
773
773
774
774
// path without slugs
@@ -783,7 +783,6 @@ export const new_createPages = <
783
783
784
784
const pathSpec = parsePathWithSlug ( routePath ) ;
785
785
const mapping = getPathMapping ( pathSpec , path ) ;
786
-
787
786
const result : Record < string , ReactNode > = {
788
787
root : createElement (
789
788
rootItem ? rootItem . component : DefaultRoot ,
@@ -792,7 +791,7 @@ export const new_createPages = <
792
791
) ,
793
792
[ `page:${ routePath } ` ] : createElement (
794
793
pageComponent ,
795
- mapping ,
794
+ { ... mapping , ... ( query ? { query } : { } ) } ,
796
795
createElement ( Children ) ,
797
796
) ,
798
797
} ;
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ globalThis.__WAKU_ROUTER_PREFETCH__ = (path) => {
484
484
} ) ;
485
485
return {
486
486
rscPath,
487
- rscParams : JSON . stringify ( { query : searchParams . toString ( ) } ) ,
487
+ rscParams : new URLSearchParams ( { query : searchParams . toString ( ) } ) ,
488
488
html,
489
489
} ;
490
490
} ;
You can’t perform that action at this time.
0 commit comments