-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
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
Add outputs_list to window.dash_clientside.callback_context #2881
Conversation
dc.callback_context.outputs_list = | ||
Object.prototype.toString.call(outputs) === '[object Object]' | ||
? [outputs] | ||
: outputs; | ||
dc.callback_context.outputs = output; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be best to make the client side callback_context
be the same as what's available on the server side. To achieve this, I think all that's necessary is to add the following here:
dc.callback_context.outputs_list = outputs;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, indeed! I made a mistake. I will make the necessary changes. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just need to change the changelog section then it's good to merge.
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](https://semver.org/). | |||
|
|||
## [2.17.1] - 2024-06-12 | |||
|
|||
## Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to go in a new section above the ## [2.17.1]
with a ## [UNRELEASED]
title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your correction. I have made the necessary changes as per your suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃
Start with a description of this PR. Then edit the list below to the items that make sense for your PR scope, and check off the boxes as you go!
Contributor Checklist
optionals
CHANGELOG.md
Closes #2877