Skip to content
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

Fix ReferenceInput does not show loader while possible values and reference record are loading #5731

Merged

Conversation

fzaninotto
Copy link
Member

To test this, I forced a dataProvider waiting longer for getList and getMany, and loaded the CommentEdit page in the simple example. I saw that no loader was shown.

This is also mentioned as a gotcha in StackOverflow (https://stackoverflow.com/questions/65488613/react-admin-referenceinput-doesnt-show-loading-linearprogress-while-loading).

The fix uses the loaded state from the two dataProvider calls rather than the convoluted logic from getDataStatus.

@fzaninotto fzaninotto added the RFR Ready For Review label Jan 3, 2021
@fzaninotto fzaninotto added this to the 3.11.2 milestone Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants