I’m trying to write a ClientSide callback that can throttle how often a ServerSide callback gets called by some custom logic. If this was a ServerSide callback, I would
raise dash.exceptions.PreventUpdate, but that isn’t available in the ClientSide callback. I can throw an error, but this clutters the console. Is there a recommended way to do this?
Edit: I will note that
debounce on a ClientSide callbacks doesn’t work, because while the debounce will reduce how often data gets sent back to the server, it still effectively returns
undefined, which is considered an update and triggers the next callback.