Skip to content

Update useClipboard useEffect to support async functions #27

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

Merged
merged 1 commit into from
Aug 10, 2019

Conversation

zeljkoX
Copy link
Contributor

@zeljkoX zeljkoX commented Aug 9, 2019

Summary

The implementation does not align with hooks best practices. useEffect does not work with async functions as a parameter. They should be declared and invoked in useEffect body.

@melihberberolu melihberberolu merged commit 970f053 into react-native-community:master Aug 10, 2019
@pvinis
Copy link
Member

pvinis commented Feb 21, 2020

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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