Skip to content

Commit 67ebc85

Browse files
committed
Revert "Actions behave idempotently by default in ^2.0.0"
This reverts commit 5ea4427.
1 parent a09c64e commit 67ebc85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/navigating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class DetailsScreen extends React.Component {
126126
127127
Another common requirement is to be able to go back _multiple_ screens -- for example, if you are several screens deep in a stack and want to dismiss all of them to go back to the first screen. In this case, we know that we want to go back to `Home` so we can use `navigate('Home')` (not `push`! try that out and see the difference). Another alternative would be `navigation.popToTop()`, which goes back to the first screen in the stack.
128128

129-
Navigation actions always behave idempotently. If you are not using `^2.0.0`, navigation actions behave idempotently only when called with a key. When pushing, the navigator will push a route with that key. If the route already exists, it will navigate to that route and set the params.
129+
Navigation actions behave idempotently when called with a key. When pushing, the navigator will push a route with that key. If the route already exists, it will navigate to that route and set the params.
130130

131131
```js
132132
<Button

0 commit comments

Comments
 (0)