You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have control of navigating back to the previously shown sheet and not only the previous indexed sheet. If the state would keep track of the last page shown, this could be implemented with showPageWithId(). Now the state doesn't seem to have any history data.
The text was updated successfully, but these errors were encountered:
Now the state doesn't seem to have any history data.
@kkoskenvirta The state management can be done in a StateHolder class provided with modalDecorator. When you have the state in the state holder (or state provider) class, and go back to the previous page, it should work.
Yea, I took that route currently to hold the history state on my own state that wraps all the sheets with modalDecorator, however I think it would be natural for WoltModalSheetState to hold its own navigation state/history by default rather than having to implement it on my own for every separate set of sheets. However I understand if it happens to be against the architectural idea of this package 👍
What feature would you like to see?
I would like to have control of navigating back to the previously shown sheet and not only the previous indexed sheet. If the state would keep track of the last page shown, this could be implemented with showPageWithId(). Now the state doesn't seem to have any history data.
The text was updated successfully, but these errors were encountered: