-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Release testHook
and act
support
#280
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
Conversation
This also removes `flushEffects` which is no longer necessary!
Codecov Report
@@ Coverage Diff @@
## master #280 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 2 +1
Lines 27 41 +14
Branches 5 6 +1
=====================================
+ Hits 27 41 +14
Continue to review full report at Codecov.
|
Sorry @donavon, this is the best we can do I think :-(
🎉 This PR is included in version 5.5.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
const act = reactAct || (cb => cb()) | ||
|
||
function rtlAct(...args) { | ||
return act(...args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can actually polyfill it for older versions of react
function act(fn){
ReactDOM.unstable_batchedUpdates(fn);
ReactDOM.render(<div/>, document.createElement('div'));
}
you won't get the warnings, but something's better than nothing I suppose.
What: Release
testHook
andact
supportWhy: Because React 16.8.0 was released!! Hooray!
How: See the individual PRs associated to this
next
branch for more info.Checklist: