Skip to content

Set isLoading to false if cache hit#2042

Merged
JedWatson merged 1 commit intoJedWatson:masterfrom
timhwang21:devs/timothy/fix-async-isloading
Oct 19, 2017
Merged

Set isLoading to false if cache hit#2042
JedWatson merged 1 commit intoJedWatson:masterfrom
timhwang21:devs/timothy/fix-async-isloading

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.

3 participants