When switching pages, the button status returns to initialization.
I have added many control buttons to my page, but whenever I switch pages, the button will return to the default state. How to solve this problem? How to give a button an initialization?
Try commiting the object and changing the visibility based on the object. For example you can make a boolean or a enum in your domain model to keep track of this. :)