Skip to content

Fix async loadOptions bug.#1054

Closed
chenzhihao wants to merge 1 commit intoJedWatson:masterfrom
chenzhihao:master
Closed

Fix async loadOptions bug.#1054
chenzhihao wants to merge 1 commit intoJedWatson:masterfrom
chenzhihao:master

Conversation

@chenzhihao
Copy link

We should not return a promise here.

The code:

return inputPromise.then(() => {
  return input;
})

is still a promise.

The returned value will be used at handleInputChange() of Select.js();
And this value will be used to 'setState(...)' as 'inputValue' which will finally become '[object Promise]' string as 'inputValue'.

We should not return a promise here. The retured value will be used at handleInputChange() of Select.js.
And this value will be used to setState as 'inputValue' which will become '[object Promise]'.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.538% when pulling 0314561 on chenzhihao:master into 01de8d3 on JedWatson:master.

@dcurletti
Copy link
Contributor

This should get pulled in ASAP.

@bvaughn
Copy link
Collaborator

bvaughn commented Sep 18, 2016

This issue has been resolved via PR #1226 by way of an Async refactor.

@bvaughn bvaughn closed this Sep 18, 2016
@bvaughn bvaughn mentioned this pull request Sep 18, 2016
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.

4 participants