-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Store callback Output value in persistence storage #3279
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
Merged
T4rk1n
merged 7 commits into
plotly:dev
from
petar-qb:fix/store-output-value-in-persistence-storage
Apr 30, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cc6522c
Store callback Output value in persistence storage
petar-qb 11f94f2
Linting minor change
petar-qb e1327a8
Removing unnecessary comment
petar-qb f5068f6
Merge branch 'dev' of github.com:petar-qb/dash into fix/store-output-…
petar-qb af9bbc7
Merge branch 'dev' of github.com:petar-qb/dash into fix/store-output-…
petar-qb 72cdc37
Fix rdps011 failing test
petar-qb fc5eea6
Adding a changelog
petar-qb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What did this do? It's inclusion/removal doesn't seem to have an effect.
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.
The issue with this code is that it clears the persisted value before the new selection is written via
recordUiEdit
, once the callback is triggered. For example, if the storage initially contains[[1, 2], []]
andcallback_select_all
(which selects[1, 2, 3]
) is triggered:originalVal
) to be lost, which is problematic.recordUiEdit
writes[[1, 2, 3], [1, 2]]
into storage.This is incorrect because what should be persisted is
[[1, 2, 3], []]
.I might need to handle this differently. What do you think?