DEV Community

Discussion on: Fix Warning in React: Update was not wrapped in act()

Collapse
 
rendall profile image
rendall

I don't know how many times this specific blog post has saved my sanity. In my opinion the warning message from the testing library itself is not helpful. Often, the state update continues after render but before any user input, so its lecturing about not firing events outside of an act statement does not apply.

Thanks again! Much appreciated!