Skip to content

Commit 99768df

Browse files
authored
Define loaders and actions more clearly (#10531)
1 parent 5b6de0d commit 99768df

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
- lordofthecactus
125125
- LordThi
126126
- loun4
127+
- lounsbrough
127128
- lpaube
128129
- lqze
129130
- lukerSpringTree

docs/hooks/use-navigate.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: useNavigate
44

55
# `useNavigate`
66

7-
<docs-warning>It's usually better to use [`redirect`][redirect] in loaders and actions than this hook</docs-warning>
7+
<docs-warning>It's usually better to use [`redirect`][redirect] in [`loaders`][loaders] and [`actions`][actions] than this hook</docs-warning>
88

99
The `useNavigate` hook returns a function that lets you navigate programmatically, for example in an effect:
1010

@@ -50,3 +50,5 @@ The `navigate` function has two signatures:
5050
If using `replace: true`, the navigation will replace the current entry in the history stack instead of adding a new one.
5151

5252
[redirect]: ../fetch/redirect
53+
[loaders]: ../route/loader
54+
[actions]: ../route/action

0 commit comments

Comments
 (0)