Skip to content

Commit eea9ab3

Browse files
authored
Merge pull request #376 from chiefcll/fix-backtrack-docs
fix #375 - update docs for backtracking
2 parents ed39edf + bf80386 commit eea9ab3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/plugins/router/deeplinking.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Deeplinking is an important feature, because:
99
* Regular data providing for a specific route is still executed.
1010
* The configuration object's [boot](configuration.md#boot) key handles any general operations to be executed for a proper functioning of your App.
1111

12-
## Backtracking
12+
## Backtrack
1313

1414
When a user enters your App via a deeplink, there is technically *no* history available. By default, this would mean that a **Back** key press leads to exiting the App.
1515

16-
On some platforms, this is not the desired behavior. For that reason, the Router plugin supports the *[backtracking](settings.md#backtracking)* functionality.
16+
On some platforms, this is not the desired behavior. For that reason, the Router plugin supports the *[backtrack](settings.md#backtrack)* functionality.
1717

18-
When this feature is enabled (via the Platform Setting `Router.backtracking`) and the **Back** key is pressed, the Router will *recursively* remove the last part of the hash, until it finds a valid path to navigate to.
18+
When this feature is enabled (via the Platform Setting `Router.backtrack`) and the **Back** key is pressed, the Router will *recursively* remove the last part of the hash, until it finds a valid path to navigate to.
1919

2020
#### NEXT:
2121
[History](history.md)

docs/plugins/router/settings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For example:
1818
"lazyCreate": true,
1919
"lazyDestroy": true,
2020
"gcOnUnload": true,
21-
"backtracking": true,
21+
"backtrack": true,
2222
"reuseInstance": false,
2323
"destroyOnHistoryBack": false
2424
}
@@ -44,9 +44,9 @@ By default, Lazy Destroy is *disabled*. This results in faster navigating back t
4444

4545
If you want to free up texture memory *directly* after a previous page has been destroyed and you do not want to wait for Lightning's (texture) garbage collection, you can set `gcOnUnload` to `true`. This forces a texture garbage collect directly after destroying the page.
4646

47-
### backtracking
47+
### backtrack
4848

49-
If you want to enable *backtracking* in your app, you set `backtracking` to `true`.
49+
If you want to enable *backtracking* in your app, you set `backtrack` to `true`.
5050

5151
### destroyOnHistoryBack
5252

src/Router/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ export interface RouterPlatformSettings {
6262
*
6363
* @remarks
6464
* See [Router Settings](https://lightningjs.io/docs/#/lightning-sdk-reference/plugins/router/settings?id=router-settings)
65-
* and [Deeplinking - Backtracking](https://lightningjs.io/docs/#/lightning-sdk-reference/plugins/router/deeplinking?id=backtracking)
65+
* and [Deeplinking - Backtrack](https://lightningjs.io/docs/#/lightning-sdk-reference/plugins/router/deeplinking?id=backtrack)
6666
* for more information.
6767
*
6868
* @defaultValue `false`
6969
*/
70-
backtracking?: boolean;
70+
backtrack?: boolean;
7171

7272
/**
7373
* If set to `true` (default), a navigation to a hash with the same route blueprint as the current hash will cause the

0 commit comments

Comments
 (0)