Skip to content

Commit d4e1717

Browse files
committed
Fix broken link
1 parent 687409c commit d4e1717

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

versioned_docs/version-7.x/navigation-state.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ The state object is guaranteed to not be stale when accessing it with built-in A
112112

113113
- Navigator's state with [`useNavigationState()`](use-navigation-state.md) or [`navigation.getState()`](navigation-object.md#getstate) - not including child navigators.
114114
- Complete state of the navigation tree with [`ref.getRootState()`](navigation-container.md#getrootstate) including root navigator and all child navigators.
115+
-
115116

116-
However, if you try to access a child navigator's state with the `state` property on the [`route`](route.md) object, it maybe a stale or partial state object. So it's not recommended to use this property directly.
117+
However, if you try to access a child navigator's state with the `state` property on the [`route`](route-object.md) object, it maybe a stale or partial state object. So it's not recommended to use this property directly.
117118

118119
When React Navigation encounters stale or partial state, it will automatically fix it up before using it. This includes adding missing keys, removing any invalid routes, ensuring the `index` is correct etc. This process of fixing stale state is called **rehydration**. If you're writing a [custom router](custom-routers.md), the `getRehydratedState` method lets you write custom rehydration logic to fix up state objects.
119120

versioned_docs/version-8.x/navigation-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ The state object is guaranteed to not be stale when accessing it with built-in A
135135
- Navigator's state with [`useNavigationState()`](use-navigation-state.md) or [`navigation.getState()`](navigation-object.md#getstate) - not including child navigators.
136136
- Complete state of the navigation tree with [`ref.getRootState()`](navigation-container.md#getrootstate) including root navigator and all child navigators.
137137

138-
However, if you try to access a child navigator's state with the `state` property on the [`route`](route.md) object, it maybe a stale or partial state object. So it's not recommended to use this property directly.
138+
However, if you try to access a child navigator's state with the `state` property on the [`route`](route-object.md) object, it maybe a stale or partial state object. So it's not recommended to use this property directly.
139139

140140
When React Navigation encounters stale or partial state, it will automatically fix it up before using it. This includes adding missing keys, removing any invalid routes, ensuring the `index` is correct etc. This process of fixing stale state is called **rehydration**. If you're writing a [custom router](custom-routers.md), the `getRehydratedState` method lets you write custom rehydration logic to fix up state objects.
141141

0 commit comments

Comments
 (0)