clock example: switch ui is not correct after refresh (0.1.32)
milochen0418 opened this issue · 2 comments
milochen0418 commented
picklelo commented
This is because the event queue gets cleared when the page refreshes... I think we need to use some sort of localStorage potentially to save the event queue if we want to preserve it between refreshes. For now I added an on_load event to always turn the switch off on refreshes.
milochen0418 commented
Note: This issue is solved by the following