tl;dr: It wraps some work you'd like to do and waits for that work to complete before returning
An update to Component inside a test was not wrapped in act(...).
tl;dr: A React component is updating (probably as a result of changing state, props, or hooks) but that update is not happening inside of something wrapped in act
.
- Implemented in ReactFiberWorkLoop
- That error is produced when running react in a test environment (not sure how it knows this tbh) and
actQueue
is null (actQueue
is set whenact
is called)