Replies: 1 comment
-
Maybe the text above did not describe my needs clearly. Below is a screenshot I took. When I create a Maui Hybrid application, I hope that when the user switches pages, the last state can be restored. For example, when switching between the home and counter pages, their counters can be preserved. When entering the weather page each time, there is no need to pull data from the API every time, and the last scroll bar position can be seen |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm developing a Maui Hybrid(Blazor) mobile app.
It has a main page and other pages with the back button. When I go back to the main page the previous instance is recreated. So the state of the main page will be lost.
Despite I can keep the state in the Fluxor, and restore it when the page is initialized. But some states like vertical scroll position, inputing cursor position will lose.
In the MAUI native app, we can use Navigation.PushAsync(new AnotherPage()) to open a NavigationPage, when we click the back button, the main page instance is restored and displayed on the front.
How to implement these scenes, thanks.
Beta Was this translation helpful? Give feedback.
All reactions