Skip to content
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

Fix FluNavigationView noStackPush #576

Conversation

gaetandezeiraud
Copy link
Contributor

Fix FluNavigationView noStackPush to verify if an argument is passed. If true, it is better to set the page has a new one in order to update it with the arguments.

For example, in my app, I have the following pages:

  • List.qml
  • Form.qml

The list doesn't have arguments, so a click on the navigation to the list doesn't need to re-render the page. But for the Form.qml, I have an id has parameter. If the id change, it is not the same data in the form, so I need to re-render like a new one. In my use case, the search box list all the clients and I can switch between them from this input, without the PR, it doesn't work because the code consider it is the same page even if the arguments are different.

Fix FluNavigationView noStackPush to verify if an argument is passed. If true, it is better to set the page has a new one in order to update it with the arguments.
@zhuzichu520 zhuzichu520 merged commit a8ca78f into zhuzichu520:main Dec 1, 2024
5 checks passed
@zhuzichu520
Copy link
Owner

非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants