Closed
Description
We need a way to determine which input has changed. We've provided a temporary hack with n_clicks_timestamp
but we need something that is more general.
I'm not worried about the implementation, it fits into the dash-renderer
architecture nicely.
What's not as clear to me is what the app.callback
decorated functions should look like. How does this interface scale when we want to add more things like:
- Previous state
- Multiple outputs
- Keyword-style arguments instead of list-style arguments
- Which input changed
- Timestamps when inputs changed
- Nested properties (e.g. subscribing to
figure.layout.title
) - Error handling (e.g. updating an error div container when an exception is thrown)
So, let's use this thread to just propose different interfaces to the callbacks. Of course, doing this in a way that would be backwards compatible is preferred.
cc @plotly/dash
Metadata
Metadata
Assignees
Labels
No labels