File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @remix-run/router " : minor
3
+ ---
4
+
5
+ Provide the request ` signal ` as a parameter to ` patchRoutesOnNavigation `
6
+
7
+ - This can be used to abort any manifest fetches if the in-flight navigation/fetcher is aborted
Original file line number Diff line number Diff line change @@ -3293,6 +3293,7 @@ export function createRouter(init: RouterInit): Router {
3293
3293
let localManifest = manifest ;
3294
3294
try {
3295
3295
await patchRoutesOnNavigationImpl ( {
3296
+ signal,
3296
3297
path : pathname ,
3297
3298
matches : partialMatches ,
3298
3299
patch : ( routeId , children ) => {
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ export type AgnosticPatchRoutesOnNavigationFunctionArgs<
259
259
O extends AgnosticRouteObject = AgnosticRouteObject ,
260
260
M extends AgnosticRouteMatch = AgnosticRouteMatch
261
261
> = {
262
+ signal : AbortSignal ;
262
263
path : string ;
263
264
matches : M [ ] ;
264
265
patch : ( routeId : string | null , children : O [ ] ) => void ;
You can’t perform that action at this time.
0 commit comments