You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signature '(callback: () => VoidOrUndefinedOnly): void' of 'act' is deprecated.ts(6387)
index.d.ts(388, 4): The declaration was marked as deprecated here.
(alias) act(callback: () => VoidOrUndefinedOnly): void (+1 overload)
import act
Wrap any code rendering and triggering updates to your components into act() calls.
Ensures that the behavior in your tests matches what happens in the browser more closely by executing pending useEffects before returning. This also reduces the amount of re-renders done.
@param callback — A synchronous, void callback that will execute as a single, complete React commit.
react-dom/test-utils Deprecation Warnings – React
The text was updated successfully, but these errors were encountered: