@@ -79,16 +79,15 @@ server-rendered app. But in advanced use-cases (such as Framework Mode's
7979[` clientLoader ` ](../ ../ start / framework / route - module #clientLoader )), you may
8080want to include ` loaderData ` for only some routes that were loaded / rendered
8181on 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 `
8383component and running the [` loader ` ](../ ../ start / data / route - object #loader )s
8484for other routes during hydration .
8585
8686A route [` loader ` ](../ ../ start / data / route - object #loader ) will run during
8787hydration in two scenarios :
8888
8989 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
9291 2. The ` loader.hydrate ` property is set to ` true `
9392 This allows you to run the [` loader ` ](../ ../ start / data / route - object #loader )
9493 even if you did not render a fallback on initial hydration (i .e ., to
@@ -150,7 +149,7 @@ application's data needs.
150149
151150The `dataStrategy ` function should return a key /value -object of
152151`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
154153if the handler was successful or not based on the `DataStrategyResult .type `
155154field . If the returned `DataStrategyResult .result ` is a [`Response `](https :// developer.mozilla.org/en-US/docs/Web/API/Response),
156155React 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.
346345
347346` patchRoutesOnNavigation ` will be called anytime React Router is unable to
348347match 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
350349new routes into the tree at a specific location. This method is executed
351350during the ` loading ` portion of the navigation for ` GET ` requests and during
352351the ` submitting ` portion of the navigation for non- ` GET ` requests.
@@ -449,7 +448,7 @@ the `submitting` portion of the navigation for non-`GET` requests.
449448 **Co-locating route discovery with route definition**
450449
451450 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)
453452 field on a route to keep the children definitions co-located:
454453
455454 ` ` ` tsx
0 commit comments