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
The code waits for 2 seconds before showing the loading icon.
If the process completes or the event resolves within those 2 seconds, the icon is never shown.
If the process doesn't complete, the icon appears after the delay, signaling that something is still loading.
This feature could be particularly useful for applications with frequent, rapid user interactions that trigger parameter updates (e.g., sliders or live data streams). It would improve the UX by removing flicker.
Use case would be linking widgets with self.state.param.busy, but at the current moment it could cause flickering: holoviz/lumen#783 (comment)
I don't think this functionality should live in Param. I do think we should have some way to make the busy toggle not flicker on/off with a debounce, though I think this functionality should live in Panel.
I'm not sure what the right solution is for the Panel issue reported here.
I think however that adding debouncing to Param could be a good fit as Param supports async callbacks. I'm not entirely sure why the suggestion is for self.param.update, I'd see it more as a new keyword added to .param.watch.
@ahuang11 I wouldn't be surprised if that's a feature that was already implemented somehow in Panel for its internal needs. If that's really the case, that could motivate even more so implementing it in Param (many of the features of Param were first implemented in Panel).
Activity
hoxbro commentedon Dec 4, 2024
I don't think this functionality should live in Param. I do think we should have some way to make the busy toggle not flicker on/off with a debounce, though I think this functionality should live in Panel.
maximlt commentedon Feb 11, 2025
I'm not sure what the right solution is for the Panel issue reported here.
I think however that adding debouncing to Param could be a good fit as Param supports async callbacks. I'm not entirely sure why the suggestion is for
self.param.update, I'd see it more as a new keyword added to.param.watch.@ahuang11 I wouldn't be surprised if that's a feature that was already implemented somehow in Panel for its internal needs. If that's really the case, that could motivate even more so implementing it in Param (many of the features of Param were first implemented in Panel).
@ahuang11 this link no longer points to the right lines.