Skip to content

Commit

Permalink
Fix missing url in use-route-loader-data.md (#9438)
Browse files Browse the repository at this point in the history
  • Loading branch information
stasundr authored Oct 11, 2022
1 parent 75cc7eb commit d9d233c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
- SkayuX
- souzasmatheus
- srmagura
- stasundr
- tanayv
- theostavrides
- thisiskartik
Expand Down
2 changes: 2 additions & 0 deletions docs/hooks/use-route-loader-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ const user = useRouteLoaderData("root");
```

The only data available is the routes that are currently rendered. If you ask for data from a route that is not currently rendered, the hook will return `undefined`.

[pickingarouter]: ../routers/picking-a-router

0 comments on commit d9d233c

Please sign in to comment.