MCPcopy
hub / github.com/plotly/dash / on_error

Function on_error

tests/integration/test_hooks.py:69–70  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

67def test_hook004_error(hook_cleanup, dash_duo):
68 @hooks.error()
69 def on_error(error):
70 set_props("error", {"children": str(error)})
71
72 app = Dash()
73 app.layout = [html.Button("start", id="start"), html.Div(id="error")]

Callers

nothing calls this directly

Calls 1

set_propsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…