Skip to content

Reset ui variables on refresh? #461

Closed Answered by falkoschindler
bcgordon3 asked this question in Q&A
Discussion options

You must be logged in to vote

Have a look at the documentation about the auto-index page. This is the simplest way to write a NiceGUI app, but it shares a common state for multiple users or browser sessions. If you use a ui.page decorator instead, the pages are private and a browser refresh will reset the UI - or more precisely: it will re-run the page function.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bcgordon3
Comment options

Answer selected by rodja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants