-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add goBack support for normal navigation #595
Conversation
…gi into 265-goback-internal-routes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added three comments
client/luigi-client.d.ts
Outdated
@@ -136,8 +136,8 @@ export declare interface LinkManager { | |||
fromContext: (navigationContext: string) => this; | |||
|
|||
/** | |||
* Discards the active view and navigates back to the last visited view (preserved view), if a preserved view was set before. | |||
* @param {any} goBackValue data that is passed in the `goBackContext` field to the last visited view | |||
* Discards the active view and navigates back to the last visited view. Works with preserved views, as well as classical browser back substitute. `goBackContext` is only available when using preserved views. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Discards the active view and navigates back to the last visited view. Works with preserved views, as well as classical browser back substitute. `goBackContext` is only available when using preserved views. | |
* Discards the active view and navigates back to the last visited view. Works with preserved views, as well as the classic browser back substitute. **goBackContext** is only available when using preserved views. |
client/src/linkManager.js
Outdated
@@ -206,22 +206,20 @@ export class linkManager extends LuigiClientBase { | |||
} | |||
|
|||
/** | |||
* Discards the active view and navigates back to the last visited view (preserved view), if a preserved view was set before. | |||
* Discards the active view and navigates back to the last visited view. Works with preserved views, as well as classical browser back substitute. `goBackContext` is only available when using preserved views. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Discards the active view and navigates back to the last visited view. Works with preserved views, as well as classical browser back substitute. `goBackContext` is only available when using preserved views. | |
* Discards the active view and navigates back to the last visited view. Works with preserved views, as well as the classic browser back substitute. **goBackContext** is only available when using preserved views. |
docs/luigi-client-api.md
Outdated
@@ -192,11 +192,11 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/ | |||
|
|||
### goBack | |||
|
|||
Discards the active view and navigates back to the last visited view (preserved view), if a preserved view was set before. | |||
Discards the active view and navigates back to the last visited view. Works with preserved views, as well as classical browser back substitute. `goBackContext` is only available when using preserved views. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discards the active view and navigates back to the last visited view. Works with preserved views, as well as classical browser back substitute. `goBackContext` is only available when using preserved views. | |
Discards the active view and navigates back to the last visited view. Works with preserved views, as well as the classic browser back substitute. **goBackContext** is only available when using preserved views. |
Co-Authored-By: Barbara Szwarc <[email protected]>
* Implemented goBack to do history.back() if no preserved view is available * documented that goBackContext is only available when using preserved views * added warning when using goBackContext but its not available
goBack works now also if you are navigating normally and want to go back to the last route.