act cannot detect secondary updates
See original GitHub issueDo you want to request a feature or report a bug?
bug
What is the current behavior?
If a component performs a second (non user triggered) update, act
cannot detect it and warns about the update.
For example, a button is clicked and updates its text. After a second, the button resets and its text reverts to its original state.
https://codesandbox.io/s/6xkyl37x7k?previewwindow=tests
(The reproduction is a bit contrived, but demonstrates the issue.)
What is the expected behavior?
The test runs without warning about being wrapped in act
.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React & React DOM @ 16.8.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
FFXIV ACT FAQ - gists · GitHub
FFXIV ACT FAQ. TOC. Troubleshooting stuff. My ACT isn't showing any numbers. What can I do? My overlay isn't updating / not showing;...
Read more >FFXIV — ACT Forums
Warnings not working for patch 6.2 content (FFXIV) ... ACT in secondary PC ... Failed: Cannot detect one or more FFXIV memory signatures....
Read more >ACT FFXIV Plugin released for v2.4 - Reddit
I've released an update to the ACT FFXIV plugin to work with FFXIV patch 2.4. For those not familiar with Advanced Combat Tracker,...
Read more >The ACT Test Rescheduled Test Centers
Find out if your ACT test center was rescheduled due to bad weather or unforeseen circumstances.
Read more >ACT Test Accommodations and English Learner Supports
Please see Examinees Who Are Homeschooled or Are Not Currently Enrolled ... If your high school cannot administer the test, contact ACT as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We are aware of these problems and are working on a solution, sorry about that.
Since I’m not sure if the issue marked duplicate will be re-opened, I’ll post this here. We have a library that handles async actions and updates state. A very contrived example of something we need to test for is:
How do you test this with
act
? Currently withreact-test-renderer
we can do:This will fail:
And this will continue to warn but because
act
is receiving a promise