@@ -27,6 +27,7 @@ import { Route as StructuralSharingEnabledRouteImport } from './routes/structura
27
27
import { Route as SearchParamsDefaultRouteImport } from './routes/search-params/default'
28
28
import { Route as RedirectTargetRouteImport } from './routes/redirect/$target'
29
29
import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
30
+ import { Route as GlobalBlockerLayoutRouteImport } from './routes/global-blocker/_layout'
30
31
import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
31
32
import { Route as groupLazyinsideRouteImport } from './routes/(group)/lazyinside'
32
33
import { Route as groupInsideRouteImport } from './routes/(group)/inside'
@@ -48,13 +49,20 @@ import { Route as ParamsPsWildcardSplatRouteImport } from './routes/params-ps/wi
48
49
import { Route as ParamsPsNamedChar123fooChar125suffixRouteImport } from './routes/params-ps/named/{$foo}suffix'
49
50
import { Route as ParamsPsNamedPrefixChar123fooChar125RouteImport } from './routes/params-ps/named/prefix{$foo}'
50
51
import { Route as ParamsPsNamedFooRouteImport } from './routes/params-ps/named/$foo'
52
+ import { Route as GlobalBlockerLayoutMultiBlockersRouteImport } from './routes/global-blocker/_layout.multi-blockers'
51
53
import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
52
54
import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
53
55
import { Route as groupSubfolderInsideRouteImport } from './routes/(group)/subfolder/inside'
54
56
import { Route as groupLayoutInsidelayoutRouteImport } from './routes/(group)/_layout.insidelayout'
55
57
58
+ const GlobalBlockerRouteImport = createFileRoute ( '/global-blocker' ) ( )
56
59
const groupRouteImport = createFileRoute ( '/(group)' ) ( )
57
60
61
+ const GlobalBlockerRoute = GlobalBlockerRouteImport . update ( {
62
+ id : '/global-blocker' ,
63
+ path : '/global-blocker' ,
64
+ getParentRoute : ( ) => rootRouteImport ,
65
+ } as any )
58
66
const groupRoute = groupRouteImport . update ( {
59
67
id : '/(group)' ,
60
68
getParentRoute : ( ) => rootRouteImport ,
@@ -140,6 +148,10 @@ const PostsPostIdRoute = PostsPostIdRouteImport.update({
140
148
path : '/$postId' ,
141
149
getParentRoute : ( ) => PostsRoute ,
142
150
} as any )
151
+ const GlobalBlockerLayoutRoute = GlobalBlockerLayoutRouteImport . update ( {
152
+ id : '/_layout' ,
153
+ getParentRoute : ( ) => GlobalBlockerRoute ,
154
+ } as any )
143
155
const LayoutLayout2Route = LayoutLayout2RouteImport . update ( {
144
156
id : '/_layout-2' ,
145
157
getParentRoute : ( ) => LayoutRoute ,
@@ -251,6 +263,12 @@ const ParamsPsNamedFooRoute = ParamsPsNamedFooRouteImport.update({
251
263
path : '/params-ps/named/$foo' ,
252
264
getParentRoute : ( ) => rootRouteImport ,
253
265
} as any )
266
+ const GlobalBlockerLayoutMultiBlockersRoute =
267
+ GlobalBlockerLayoutMultiBlockersRouteImport . update ( {
268
+ id : '/multi-blockers' ,
269
+ path : '/multi-blockers' ,
270
+ getParentRoute : ( ) => GlobalBlockerLayoutRoute ,
271
+ } as any )
254
272
const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport . update ( {
255
273
id : '/layout-b' ,
256
274
path : '/layout-b' ,
@@ -283,6 +301,7 @@ export interface FileRoutesByFullPath {
283
301
'/onlyrouteinside' : typeof anotherGroupOnlyrouteinsideRoute
284
302
'/inside' : typeof groupInsideRoute
285
303
'/lazyinside' : typeof groupLazyinsideRoute
304
+ '/global-blocker' : typeof GlobalBlockerLayoutRouteWithChildren
286
305
'/posts/$postId' : typeof PostsPostIdRoute
287
306
'/redirect/$target' : typeof RedirectTargetRouteWithChildren
288
307
'/search-params/default' : typeof SearchParamsDefaultRoute
@@ -295,6 +314,7 @@ export interface FileRoutesByFullPath {
295
314
'/subfolder/inside' : typeof groupSubfolderInsideRoute
296
315
'/layout-a' : typeof LayoutLayout2LayoutARoute
297
316
'/layout-b' : typeof LayoutLayout2LayoutBRoute
317
+ '/global-blocker/multi-blockers' : typeof GlobalBlockerLayoutMultiBlockersRoute
298
318
'/params-ps/named/$foo' : typeof ParamsPsNamedFooRoute
299
319
'/params-ps/named/prefix{$foo}' : typeof ParamsPsNamedPrefixChar123fooChar125Route
300
320
'/params-ps/named/{$foo}suffix' : typeof ParamsPsNamedChar123fooChar125suffixRoute
@@ -321,6 +341,7 @@ export interface FileRoutesByTo {
321
341
'/onlyrouteinside' : typeof anotherGroupOnlyrouteinsideRoute
322
342
'/inside' : typeof groupInsideRoute
323
343
'/lazyinside' : typeof groupLazyinsideRoute
344
+ '/global-blocker' : typeof GlobalBlockerLayoutRouteWithChildren
324
345
'/posts/$postId' : typeof PostsPostIdRoute
325
346
'/search-params/default' : typeof SearchParamsDefaultRoute
326
347
'/structural-sharing/$enabled' : typeof StructuralSharingEnabledRoute
@@ -332,6 +353,7 @@ export interface FileRoutesByTo {
332
353
'/subfolder/inside' : typeof groupSubfolderInsideRoute
333
354
'/layout-a' : typeof LayoutLayout2LayoutARoute
334
355
'/layout-b' : typeof LayoutLayout2LayoutBRoute
356
+ '/global-blocker/multi-blockers' : typeof GlobalBlockerLayoutMultiBlockersRoute
335
357
'/params-ps/named/$foo' : typeof ParamsPsNamedFooRoute
336
358
'/params-ps/named/prefix{$foo}' : typeof ParamsPsNamedPrefixChar123fooChar125Route
337
359
'/params-ps/named/{$foo}suffix' : typeof ParamsPsNamedChar123fooChar125suffixRoute
@@ -365,6 +387,8 @@ export interface FileRoutesById {
365
387
'/(group)/inside' : typeof groupInsideRoute
366
388
'/(group)/lazyinside' : typeof groupLazyinsideRoute
367
389
'/_layout/_layout-2' : typeof LayoutLayout2RouteWithChildren
390
+ '/global-blocker' : typeof GlobalBlockerRouteWithChildren
391
+ '/global-blocker/_layout' : typeof GlobalBlockerLayoutRouteWithChildren
368
392
'/posts/$postId' : typeof PostsPostIdRoute
369
393
'/redirect/$target' : typeof RedirectTargetRouteWithChildren
370
394
'/search-params/default' : typeof SearchParamsDefaultRoute
@@ -377,6 +401,7 @@ export interface FileRoutesById {
377
401
'/(group)/subfolder/inside' : typeof groupSubfolderInsideRoute
378
402
'/_layout/_layout-2/layout-a' : typeof LayoutLayout2LayoutARoute
379
403
'/_layout/_layout-2/layout-b' : typeof LayoutLayout2LayoutBRoute
404
+ '/global-blocker/_layout/multi-blockers' : typeof GlobalBlockerLayoutMultiBlockersRoute
380
405
'/params-ps/named/$foo' : typeof ParamsPsNamedFooRoute
381
406
'/params-ps/named/prefix{$foo}' : typeof ParamsPsNamedPrefixChar123fooChar125Route
382
407
'/params-ps/named/{$foo}suffix' : typeof ParamsPsNamedChar123fooChar125suffixRoute
@@ -407,6 +432,7 @@ export interface FileRouteTypes {
407
432
| '/onlyrouteinside'
408
433
| '/inside'
409
434
| '/lazyinside'
435
+ | '/global-blocker'
410
436
| '/posts/$postId'
411
437
| '/redirect/$target'
412
438
| '/search-params/default'
@@ -419,6 +445,7 @@ export interface FileRouteTypes {
419
445
| '/subfolder/inside'
420
446
| '/layout-a'
421
447
| '/layout-b'
448
+ | '/global-blocker/multi-blockers'
422
449
| '/params-ps/named/$foo'
423
450
| '/params-ps/named/prefix{$foo}'
424
451
| '/params-ps/named/{$foo}suffix'
@@ -445,6 +472,7 @@ export interface FileRouteTypes {
445
472
| '/onlyrouteinside'
446
473
| '/inside'
447
474
| '/lazyinside'
475
+ | '/global-blocker'
448
476
| '/posts/$postId'
449
477
| '/search-params/default'
450
478
| '/structural-sharing/$enabled'
@@ -456,6 +484,7 @@ export interface FileRouteTypes {
456
484
| '/subfolder/inside'
457
485
| '/layout-a'
458
486
| '/layout-b'
487
+ | '/global-blocker/multi-blockers'
459
488
| '/params-ps/named/$foo'
460
489
| '/params-ps/named/prefix{$foo}'
461
490
| '/params-ps/named/{$foo}suffix'
@@ -488,6 +517,8 @@ export interface FileRouteTypes {
488
517
| '/(group)/inside'
489
518
| '/(group)/lazyinside'
490
519
| '/_layout/_layout-2'
520
+ | '/global-blocker'
521
+ | '/global-blocker/_layout'
491
522
| '/posts/$postId'
492
523
| '/redirect/$target'
493
524
| '/search-params/default'
@@ -500,6 +531,7 @@ export interface FileRouteTypes {
500
531
| '/(group)/subfolder/inside'
501
532
| '/_layout/_layout-2/layout-a'
502
533
| '/_layout/_layout-2/layout-b'
534
+ | '/global-blocker/_layout/multi-blockers'
503
535
| '/params-ps/named/$foo'
504
536
| '/params-ps/named/prefix{$foo}'
505
537
| '/params-ps/named/{$foo}suffix'
@@ -529,6 +561,7 @@ export interface RootRouteChildren {
529
561
Char45824Char54620Char48124Char44397Route : typeof Char45824Char54620Char48124Char44397Route
530
562
anotherGroupOnlyrouteinsideRoute : typeof anotherGroupOnlyrouteinsideRoute
531
563
groupRoute : typeof groupRouteWithChildren
564
+ GlobalBlockerRoute : typeof GlobalBlockerRouteWithChildren
532
565
RedirectTargetRoute : typeof RedirectTargetRouteWithChildren
533
566
StructuralSharingEnabledRoute : typeof StructuralSharingEnabledRoute
534
567
ParamsPsIndexRoute : typeof ParamsPsIndexRoute
@@ -550,6 +583,13 @@ export interface RootRouteChildren {
550
583
551
584
declare module '@tanstack/react-router' {
552
585
interface FileRoutesByPath {
586
+ '/global-blocker' : {
587
+ id : '/global-blocker'
588
+ path : '/global-blocker'
589
+ fullPath : '/global-blocker'
590
+ preLoaderRoute : typeof GlobalBlockerRouteImport
591
+ parentRoute : typeof rootRouteImport
592
+ }
553
593
'/(group)' : {
554
594
id : '/(group)'
555
595
path : '/'
@@ -669,6 +709,13 @@ declare module '@tanstack/react-router' {
669
709
preLoaderRoute : typeof PostsPostIdRouteImport
670
710
parentRoute : typeof PostsRoute
671
711
}
712
+ '/global-blocker/_layout' : {
713
+ id : '/global-blocker/_layout'
714
+ path : '/global-blocker'
715
+ fullPath : '/global-blocker'
716
+ preLoaderRoute : typeof GlobalBlockerLayoutRouteImport
717
+ parentRoute : typeof GlobalBlockerRoute
718
+ }
672
719
'/_layout/_layout-2' : {
673
720
id : '/_layout/_layout-2'
674
721
path : ''
@@ -816,6 +863,13 @@ declare module '@tanstack/react-router' {
816
863
preLoaderRoute : typeof ParamsPsNamedFooRouteImport
817
864
parentRoute : typeof rootRouteImport
818
865
}
866
+ '/global-blocker/_layout/multi-blockers' : {
867
+ id : '/global-blocker/_layout/multi-blockers'
868
+ path : '/multi-blockers'
869
+ fullPath : '/global-blocker/multi-blockers'
870
+ preLoaderRoute : typeof GlobalBlockerLayoutMultiBlockersRouteImport
871
+ parentRoute : typeof GlobalBlockerLayoutRoute
872
+ }
819
873
'/_layout/_layout-2/layout-b' : {
820
874
id : '/_layout/_layout-2/layout-b'
821
875
path : '/layout-b'
@@ -925,6 +979,29 @@ const groupRouteChildren: groupRouteChildren = {
925
979
926
980
const groupRouteWithChildren = groupRoute . _addFileChildren ( groupRouteChildren )
927
981
982
+ interface GlobalBlockerLayoutRouteChildren {
983
+ GlobalBlockerLayoutMultiBlockersRoute : typeof GlobalBlockerLayoutMultiBlockersRoute
984
+ }
985
+
986
+ const GlobalBlockerLayoutRouteChildren : GlobalBlockerLayoutRouteChildren = {
987
+ GlobalBlockerLayoutMultiBlockersRoute : GlobalBlockerLayoutMultiBlockersRoute ,
988
+ }
989
+
990
+ const GlobalBlockerLayoutRouteWithChildren =
991
+ GlobalBlockerLayoutRoute . _addFileChildren ( GlobalBlockerLayoutRouteChildren )
992
+
993
+ interface GlobalBlockerRouteChildren {
994
+ GlobalBlockerLayoutRoute : typeof GlobalBlockerLayoutRouteWithChildren
995
+ }
996
+
997
+ const GlobalBlockerRouteChildren : GlobalBlockerRouteChildren = {
998
+ GlobalBlockerLayoutRoute : GlobalBlockerLayoutRouteWithChildren ,
999
+ }
1000
+
1001
+ const GlobalBlockerRouteWithChildren = GlobalBlockerRoute . _addFileChildren (
1002
+ GlobalBlockerRouteChildren ,
1003
+ )
1004
+
928
1005
interface RedirectTargetRouteChildren {
929
1006
RedirectTargetViaBeforeLoadRoute : typeof RedirectTargetViaBeforeLoadRoute
930
1007
RedirectTargetViaLoaderRoute : typeof RedirectTargetViaLoaderRoute
@@ -953,6 +1030,7 @@ const rootRouteChildren: RootRouteChildren = {
953
1030
Char45824Char54620Char48124Char44397Route ,
954
1031
anotherGroupOnlyrouteinsideRoute : anotherGroupOnlyrouteinsideRoute ,
955
1032
groupRoute : groupRouteWithChildren ,
1033
+ GlobalBlockerRoute : GlobalBlockerRouteWithChildren ,
956
1034
RedirectTargetRoute : RedirectTargetRouteWithChildren ,
957
1035
StructuralSharingEnabledRoute : StructuralSharingEnabledRoute ,
958
1036
ParamsPsIndexRoute : ParamsPsIndexRoute ,
0 commit comments