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

Fixed autobind for async/await in react components #914

Merged
merged 2 commits into from Mar 25, 2018

Conversation

mhuggins
Copy link
Contributor

@mhuggins mhuggins commented Mar 24, 2018

What current issue(s) from Trello/Github does this address?
N/A

What problem does this PR solve?
This fixes issues with trying to use the async/await keywords in react component functions, which was not supported in react-hot-loader v3. (More details can be found here.) It also updates the new blacklist check to use async instead of promise.then.

How did you solve this problem?
I upgraded react-hot-loader to v4 and updated a react component function to use async. react-hot-loader updates are based upon the documentation found here.

How did you make sure your solution works?
I smoke tested sending NEO to AasqbuVKaCARqoWfp64ygM5fxYBqmMMgpq, which can be found on the blacklist.

Are there any special changes in the code that we should be aware of?
N/A

Is there anything else we should know?
N/A

  • Unit tests written?

@coveralls
Copy link

coveralls commented Mar 24, 2018

Coverage Status

Coverage decreased (-0.02%) to 39.499% when pulling 3a2d263 on neoverse:bug/autobind-async-await into d6e2e65 on CityOfZion:dev.

@mhuggins mhuggins merged commit 376e45f into CityOfZion:dev Mar 25, 2018
@mhuggins mhuggins deleted the bug/autobind-async-await branch June 3, 2018 13:43
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

2 participants