-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
@@ -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); |
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.
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:
// duplicate outputs |
To change on the callback would be here:
property: out.property, |
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.
I was curious about that, didnt want to mess around with the hash in the callback. Wasnt sure about side-effects of that change.
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.
Makes the debug=True
in the loading much nicer, since it strips the hash.
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.
💃
fixes #3288