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
Very apt and evocative description of the problem from @iliana:
something about the flow of starting an existing instance, waiting for it to go from starting -> running so that i can successfully look at the serial console, or waiting for it to go from stopping -> stopped so i can start it again or delete it is kind of frustrating; i find myself repeatedly refreshing the page at the browser level because i don't see a button to refresh the data in the console, and also because there seems to be a lag time between when an instance is actually stopped, and when the console knows.
I have experienced this myself. I think the fix here is simply to poll, and make very clear when we are polling. If we are not clear enough, then users will expect every page to be polling live or at least be unsure whether to expect it.
A maybe less nerve-wracking fix would be to sprinkle more refresh buttons around, like we have on the instance list. We could also stand to have a better UI treatment when you click refresh, because when I click it and nothing changes, I feel like maybe nothing happened. In places we have space, we could add a little message next to the button saying when it was last refreshed, or maybe we could do that in a tooltip, which would not have any space requirements.
Also if we want to be clever here (I don't know if it is necessarily a good idea to be clever), we could use the Page Visibility API to quiesce polling if the tab is not visible (e.g. not the active tab).
We may get this cleverness for free. The docs could be clearer here, but I think React Query uses that API automatically to pause refetches when the tab is in the background.
Added a refresh button in #2159. Changed the title here to reflect the more interesting solution, polling, and moved this issue to milestone 9 because we are still thinking about the details on that.
Activity
[-]Poll instance state[/-][+]Poll instance state or make it easier to refresh[/+]iliana commentedon Mar 22, 2024
Also if we want to be clever here (I don't know if it is necessarily a good idea to be clever), we could use the Page Visibility API to quiesce polling if the tab is not visible (e.g. not the active tab).
david-crespo commentedon Mar 22, 2024
We may get this cleverness for free. The docs could be clearer here, but I think React Query uses that API automatically to pause refetches when the tab is in the background.
https://tanstack.com/query/latest/docs/framework/react/reference/useQuery
[-]Poll instance state or make it easier to refresh[/-][+]Poll instance state[/+]david-crespo commentedon Apr 22, 2024
Added a refresh button in #2159. Changed the title here to reflect the more interesting solution, polling, and moved this issue to milestone 9 because we are still thinking about the details on that.