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

Set isLoading to false if cache hit #2042

Merged

Conversation

timhwang21
Copy link
Contributor

From @youtogod in the comments of #2012:

Add this would be better : this.setState({ isLoading: false, options: cache[inputValue] });. Otherwise when hitting the cache during a promise, the loading icon will remain and the menu won't appear.

From @youtogod in the comments of JedWatson#2012:

> Add this would be better : `this.setState({ isLoading: false, options: cache[inputValue] });`. Otherwise when hitting the cache during a promise, the loading icon will remain and the menu won't appear.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.344% when pulling 8cfff2d on timhwang21:devs/timothy/fix-async-isloading into 7523c20 on JedWatson:master.

@JedWatson
Copy link
Owner

Thanks for following this up @timhwang21, I'll cut a new release with this and the other fix in it shortly.

@JedWatson JedWatson merged commit 5455db3 into JedWatson:master Oct 19, 2017
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.

None yet

3 participants