-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
isLoading is broken in rc2 #1228
Comments
is this for |
Yeah it's for async. What's the correct way to handle it now on rc2? My spinner just keeps spinning on rc2 and works fine on rc1. Before I was setting isLoading to true when i fetched new data from the server and set it to false when it was done. Now it just constantly spins. |
if you are using If you return a promise, you need to make sure that promise eventually gets resolved (it will keep spinning until that happens). You have to do one of those two things. If you have something in your |
I'm calling the callback with the options currently and that's what seems to be broken and/or changed.
|
Can you post your whole component or at least your load |
Thanks for that. Writing a simpler solution on webpackbin made me think about it some more. I actually had some error conditions that return out in my loadOptions method. These weren't calling the callback like the happy path did and I guess that is why the spinner kept going. Weird that the spinner stopped in old versions with this code... For example: |
There seems to be a change in functionality between rc1 and rc2 with regards to the isLoading prop. In rc1 our selects appear and they don't have the loading spinner going. In rc2 they show Loading and the spinner is spinning even though I've explicitly set isLoading to false.
The text was updated successfully, but these errors were encountered: