Skip to content

allow_duplicates to work with Loading #3289

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
merged 8 commits into from
Apr 24, 2025
Merged

allow_duplicates to work with Loading #3289

merged 8 commits into from
Apr 24, 2025

Conversation

BSd3v
Copy link
Contributor

@BSd3v BSd3v commented Apr 24, 2025

fixes #3288

@@ -45,9 +45,9 @@ const loadingSelector = (componentPath, targetComponents) => state => {
return false;
}
if (Array.isArray(target)) {
return includes(l.property, target);
return includes(l.property.split('@')[0], target);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think it might be better to set that in the reducer or the action.

There is a // duplicate outputs comment that I think may have been a todo here:

To change on the callback would be here:

property: out.property,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was curious about that, didnt want to mess around with the hash in the callback. Wasnt sure about side-effects of that change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes the debug=True in the loading much nicer, since it strips the hash.

Copy link
Contributor

@T4rk1n T4rk1n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

@T4rk1n T4rk1n merged commit 23528a1 into plotly:dev Apr 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Allow dcc.Loading's target_components to work with allow_duplicate=True Outputs
2 participants