@@ -79,16 +79,15 @@ server-rendered app. But in advanced use-cases (such as Framework Mode's
79
79
[` clientLoader ` ](../ ../ start / framework / route - module #clientLoader )), you may
80
80
want to include ` loaderData ` for only some routes that were loaded / rendered
81
81
on the server . This allows you to hydrate _some_ of the routes (such as the
82
- app layout / shell ) while showing a ` ` HydrateFallback ` `
82
+ app layout / shell ) while showing a ` HydrateFallback `
83
83
component and running the [` loader ` ](../ ../ start / data / route - object #loader )s
84
84
for other routes during hydration .
85
85
86
86
A route [` loader ` ](../ ../ start / data / route - object #loader ) will run during
87
87
hydration in two scenarios :
88
88
89
89
1. No hydration data is provided
90
- In these cases the ` ` HydrateFallback ` `
91
- component will render on initial hydration
90
+ In these cases the ` HydrateFallback ` component will render on initial hydration
92
91
2. The ` loader.hydrate ` property is set to ` true `
93
92
This allows you to run the [` loader ` ](../ ../ start / data / route - object #loader )
94
93
even if you did not render a fallback on initial hydration (i .e ., to
@@ -150,7 +149,7 @@ application's data needs.
150
149
151
150
The `dataStrategy ` function should return a key /value -object of
152
151
`routeId ` -> [`DataStrategyResult `](https :// api.reactrouter.com/v7/interfaces/react_router.DataStrategyResult.html) and should include entries for any
153
- routes where a handler was executed . A [ `DataStrategyResult `]( https : // api.reactrouter.com/v7/interfaces/react_router.DataStrategyResult.html) indicates
152
+ routes where a handler was executed . A `DataStrategyResult ` indicates
154
153
if the handler was successful or not based on the `DataStrategyResult .type `
155
154
field . If the returned `DataStrategyResult .result ` is a [`Response `](https :// developer.mozilla.org/en-US/docs/Web/API/Response),
156
155
React Router will unwrap it for you (via [`res .json `](https :// developer.mozilla.org/en-US/docs/Web/API/Response/json)
@@ -346,7 +345,7 @@ user visited.
346
345
347
346
` patchRoutesOnNavigation ` will be called anytime React Router is unable to
348
347
match a ` path ` . The arguments include the ` path ` , any partial
349
- ` ` matches ` ` , and a ` patch ` function you can call to patch
348
+ ` matches ` , and a ` patch ` function you can call to patch
350
349
new routes into the tree at a specific location. This method is executed
351
350
during the ` loading ` portion of the navigation for ` GET ` requests and during
352
351
the ` submitting ` portion of the navigation for non- ` GET ` requests.
@@ -449,7 +448,7 @@ the `submitting` portion of the navigation for non-`GET` requests.
449
448
**Co-locating route discovery with route definition**
450
449
451
450
If you don't wish to perform your own pseudo-matching, you can leverage
452
- the partial ` ` matches ` ` array and the [ ` handle ` ](../../start/data/route-object#handle)
451
+ the partial ` matches ` array and the [ ` handle ` ](../../start/data/route-object#handle)
453
452
field on a route to keep the children definitions co-located:
454
453
455
454
` ` ` tsx
0 commit comments