Skip to content

TypeScript definition of act() function allows Promise as a parameter, but code fails if Promise is provided #134

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

Closed
cbxp opened this issue Apr 12, 2021 · 1 comment · Fixed by #288
Labels

Comments

@cbxp
Copy link

cbxp commented Apr 12, 2021

const value = fn && fn()

The code above should check if fn is a function before calling it, otherwise should be used as a Promise

Copy link

🎉 This issue has been resolved in version 4.0.6 🎉

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant