Skip to content

Commit

Permalink
Fix typo in loader.md (#11493)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrijuela committed Apr 24, 2024
1 parent dc786c9 commit d2c4a12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -60,6 +60,7 @@
- david-bezero
- david-crespo
- decadentsavant
- dgrijuela
- DigitalNaut
- dmitrytarassov
- dokeet
Expand Down
2 changes: 1 addition & 1 deletion docs/route/loader.md
Expand Up @@ -87,7 +87,7 @@ Note that the APIs here are not React Router specific, but rather standard web o

## `loader.hydrate`

If you are [Server-Side Rendering][ssr] and leveraging the `fututre.v7_partialHydration` flag for [Partial Hydration][partialhydration], then you may wish to opt-into running a route `loader` on initial hydration _even though it has hydration data_ (for example, to let a user prime a cache with the hydration data). To force a `loader` to run on hydration in a partial hydration scenario, you can set a `hydrate` property on the `loader` function:
If you are [Server-Side Rendering][ssr] and leveraging the `future.v7_partialHydration` flag for [Partial Hydration][partialhydration], then you may wish to opt-into running a route `loader` on initial hydration _even though it has hydration data_ (for example, to let a user prime a cache with the hydration data). To force a `loader` to run on hydration in a partial hydration scenario, you can set a `hydrate` property on the `loader` function:

## Returning Responses

Expand Down

0 comments on commit d2c4a12

Please sign in to comment.