-
Notifications
You must be signed in to change notification settings - Fork 99
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 loading indicator for select #1716
Conversation
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 isXyzLoading should be received from the redux store via mapStateToProps and selector.isLoadingEntities(filter) instead of the promise. Using the promise may show the wrong isLoading state because the promise resolved if we are already loading the entities at the moment but the response didn't arrive yet.
040f5ed
to
1aeea24
Compare
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.
Sorry I did miss that last time, personally I would like to use isSomething
for boolean properties. In that case it is obvious they expect true or false only. Hopefully I found all occurrences and changed loading to isLoading. Additionally the promise finally import should be obsolete now and a mapStateToProps function can be simplified. Despite being a number of changes this PR looks very good! Thanks a lot!
1aeea24
to
8863131
Compare
Checklist: