Skip to content

Commit 33cc72c

Browse files
authored
chore: Drop usage of isomorphic act (#1019)
1 parent 8e536f8 commit 33cc72c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/act-compat.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from 'react'
22
import ReactDOM from 'react-dom'
33
import * as testUtils from 'react-dom/test-utils'
44

5-
const isomorphicAct = React.unstable_act
65
const domAct = testUtils.act
76
const actSupported = domAct !== undefined
87

@@ -87,7 +86,7 @@ function withGlobalActEnvironment(actImplementation) {
8786
}
8887
}
8988

90-
const act = withGlobalActEnvironment(isomorphicAct || domAct || actPolyfill)
89+
const act = withGlobalActEnvironment(domAct || actPolyfill)
9190

9291
let youHaveBeenWarned = false
9392
let isAsyncActSupported = null

0 commit comments

Comments
 (0)