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
Here is a helper function that can create passive responses for the time-being:
def make_no_update_response(ctx):
# Return a no_update payload that matches the callback output shape.
outputs_list = getattr(ctx, "outputs_list", None)
if isinstance(outputs_list, list) and outputs_list:
return [no_update for _ in outputs_list]
outputs_grouping = getattr(ctx, "outputs_grouping", None)
if isinstance(outputs_grouping, list):
return [no_update for _ in outputs_grouping]
if isinstance(outputs_grouping, tuple):
return tuple(no_update for _ in outputs_grouping)
if isinstance(outputs_grouping, dict):
return {k: no_update for k in outputs_grouping}
body = getattr(ctx, "body", None)
if isinstance(body, dict):
outputs = body.get("outputs")
if isinstance(outputs, list):
return [no_update for _ in outputs]
return no_update
Activity
BSd3v commentedon Nov 6, 2026
Here is a helper function that can create passive responses for the time-being:
[-][BUG] `set_props` streaming in Flask[/-][+][BUG] `set_props` streaming[/+]