We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you have a patch object for a number prop and try to do patched += 1, the callback will fail with an error, returned non serializable object.
patched += 1
returned non serializable object
Example:
app = Dash() app.layout = [dcc.Store(data=0, store="store"), html.Button("click", id="click")] @app.callback(Output("store", "data"), Input("click", "n_clicks")) def on_click(_): patched = Patch() patched += 1 return patched
Clicking on the button result in the error, it should instead update the store data prop to +1.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If you have a patch object for a number prop and try to do
patched += 1
, the callback will fail with an error,returned non serializable object
.Example:
Clicking on the button result in the error, it should instead update the store data prop to +1.
The text was updated successfully, but these errors were encountered: