Skip to content

Commit baaf68e

Browse files
Merge branch 'dev' of github.com:rdkcentral/Lightning-SDK into dev
2 parents 0e8ffe7 + 4149ede commit baaf68e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/plugins/router/pagetransitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Page Transitions
22

3-
If you navigate from one page to another, the default behavior is that the `[visibility](../../../lightning-core-reference/RenderEngine/Elements/Rendering.md#Visibility)` property of the new (incoming) Page is set to `true` and that this same property of the old (outgoing) Page is set to `false`.
3+
If you navigate from one page to another, the default behavior is that the [`visibility`](../../../lightning-core-reference/RenderEngine/Elements/Rendering.md#Visibility) property of the new (incoming) Page is set to `true` and that this same property of the old (outgoing) Page is set to `false`.
44

55
You can *override* this simple 'hide and show' behavior using the Router plugin. By adding a `pageTransition` method to your Page component, you can apply [default](#Default-Page-Transitions) or [custom](#Custom-Page-Transitions) page transitions.
66

src/Router/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,9 @@ export const navigate = (url, args = {}, store) => {
180180
// push request in the queue
181181
queue(url, args, store)
182182

183-
setHash(url)
184-
if (!mustUpdateLocationHash()) {
183+
if (mustUpdateLocationHash()) {
184+
setHash(url)
185+
} else {
185186
forcedHash = url
186187
handleHashChange(url)
187188
.then(() => {

0 commit comments

Comments
 (0)