You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -507,32 +499,52 @@ let router = createBrowserRouter(
507
499
If you don't wish to perform your own pseudo-matching, you can leverage the partial `matches` array and the `handle` field on a route to keep the children definitions co-located:
508
500
509
501
```jsx
510
-
let router =createBrowserRouter([
511
-
{
512
-
path:"/",
513
-
Component: Home,
514
-
},
515
-
{
516
-
path:"/dashboard",
517
-
handle: {
518
-
lazyChildren: () =>import('./dashboard');
519
-
}
520
-
},
502
+
let router =createBrowserRouter(
503
+
[
504
+
{
505
+
path:"/",
506
+
Component: Home,
507
+
},
508
+
{
509
+
path:"/dashboard",
510
+
children: [
511
+
{
512
+
// If we want to include /dashboard in the critical routes, we need to
513
+
// also include it's index route since patchRoutesOnMiss will not be
514
+
// called on a navigation to `/dashboard` because it will have successfully
0 commit comments