File tree Expand file tree Collapse file tree
packages/router-core/src/ssr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,17 +56,15 @@ export async function hydrate(router: AnyRouter): Promise<any> {
5656 )
5757
5858 const dehydratedRouter = window . $_TSR . router
59- const { manifest, dehydratedData } = dehydratedRouter
60-
6159 dehydratedRouter . matches . forEach ( ( dehydratedMatch ) => {
6260 dehydratedMatch . i = hydrateSsrMatchId ( dehydratedMatch . i )
6361 } )
64-
6562 if ( dehydratedRouter . lastMatchId ) {
6663 dehydratedRouter . lastMatchId = hydrateSsrMatchId (
6764 dehydratedRouter . lastMatchId ,
6865 )
6966 }
67+ const { manifest, dehydratedData, lastMatchId } = dehydratedRouter
7068
7169 router . ssr = {
7270 manifest,
@@ -235,8 +233,7 @@ export async function hydrate(router: AnyRouter): Promise<any> {
235233 } ) ,
236234 )
237235
238- const isSpaMode =
239- matches [ matches . length - 1 ] ! . id !== dehydratedRouter . lastMatchId
236+ const isSpaMode = matches [ matches . length - 1 ] ! . id !== lastMatchId
240237 const hasSsrFalseMatches = matches . some ( ( m ) => m . ssr === false )
241238 // all matches have data from the server and we are not in SPA mode so we don't need to kick of router.load()
242239 if ( ! hasSsrFalseMatches && ! isSpaMode ) {
You can’t perform that action at this time.
0 commit comments