File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
e2e/solid-router/basic-file-based/tests Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ test.describe('redirects', () => {
126
126
} )
127
127
} )
128
128
129
- test . skip ( 'regression test for #3097' , async ( { page } ) => {
129
+ test ( 'regression test for #3097' , async ( { page } ) => {
130
130
await page . goto ( `/redirect/preload/first` )
131
131
const link = page . getByTestId ( `link` )
132
132
await link . focus ( )
Original file line number Diff line number Diff line change @@ -2055,6 +2055,9 @@ export class RouterCore<
2055
2055
}
2056
2056
}
2057
2057
2058
+ match . beforeLoadPromise ?. resolve ( )
2059
+ match . loaderPromise ?. resolve ( )
2060
+
2058
2061
updateMatch ( match . id , ( prev ) => ( {
2059
2062
...prev ,
2060
2063
status : isRedirect ( err )
@@ -2072,8 +2075,6 @@ export class RouterCore<
2072
2075
; ( err as any ) . routeId = match . routeId
2073
2076
}
2074
2077
2075
- match . beforeLoadPromise ?. resolve ( )
2076
- match . loaderPromise ?. resolve ( )
2077
2078
match . loadPromise ?. resolve ( )
2078
2079
2079
2080
if ( isRedirect ( err ) ) {
@@ -2180,6 +2181,9 @@ export class RouterCore<
2180
2181
} , pendingMs )
2181
2182
}
2182
2183
2184
+ console . log ( `Match ${ matchId } is already loading` , {
2185
+ match : this . getMatch ( matchId ) ,
2186
+ } )
2183
2187
// Wait for the beforeLoad to resolve before we continue
2184
2188
await existingMatch . beforeLoadPromise
2185
2189
executeBeforeLoad = this . getMatch ( matchId ) ! . status === 'error'
You can’t perform that action at this time.
0 commit comments