Previous queries are passed to ApplyQueryAttribute when switching the pages by flyout item
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
Reproduction project: https://github.com/tomori-k/QueryBug
When I switch the page MainPage to NewPage1 by clicking a button in MainPage, and back with some queries, ApplyQueryAttribute of MainPage received that queries correctly.
However, After above operartions I switch the MainPage to OtherPage by the left flyout item, and switch back to MainPage, ApplyQueryAttribute is called with its arguments being the same with previous.
### Steps to Reproduce
1. Click the "click me" button on MainPage.
2. Back to MainPage by clicking the "Back" button on NewPage1. (with some queries like: `new Dictionary { {"a", 1} })`
4. Switch the page to OtherPage by clicking the left flyout item "b".
5. Switch back the page to MainPage by clicking flyout item "a". I passed no query this time, but queries passed to ApplyQueryAttribute is not empty, and seem to the same with previous one.
### Link to public reproduction project repository
https://github.com/tomori-k/QueryBug
### Version with bug
6.0.400
### Last version that worked well
Unknown/Other
### Affected platforms
Windows, I was *not* able test on other platforms
### Affected platform versions
Windows 10
### Did you find any workaround?
No.
### Relevant log output
_No response_
Contributor guide
Research direction
Start with the linked QueryBug reproduction and trace MainPage, NewPage1, OtherPage, and their ApplyQueryAttribute calls on Windows with MAUI 6.0.400. Compare navigation via the Back button with flyout items, then verify that returning to MainPage without a query does not reuse the earlier query values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100