From 07b53db54517ddcdaa82bd2a87050270ed5915ad Mon Sep 17 00:00:00 2001 From: eps1lon Date: Tue, 1 Mar 2022 19:22:44 +0100 Subject: [PATCH] chore: Drop usage of isomorphic act --- src/act-compat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/act-compat.js b/src/act-compat.js index c8889e65..bc4ff928 100644 --- a/src/act-compat.js +++ b/src/act-compat.js @@ -2,7 +2,6 @@ import * as React from 'react' import ReactDOM from 'react-dom' import * as testUtils from 'react-dom/test-utils' -const isomorphicAct = React.unstable_act const domAct = testUtils.act const actSupported = domAct !== undefined @@ -87,7 +86,7 @@ function withGlobalActEnvironment(actImplementation) { } } -const act = withGlobalActEnvironment(isomorphicAct || domAct || actPolyfill) +const act = withGlobalActEnvironment(domAct || actPolyfill) let youHaveBeenWarned = false let isAsyncActSupported = null