Closed behnammodi closed 2 years ago
Well, our React peerDependencies is >=16.8.6 so some projects maybe use React 18 we can use useInsertionEffect if available, also change is just one line
peerDependencies
>=16.8.6
useInsertionEffect
const useEffectOrLayoutEffect = isInBrowser ? React.useInsertionEffect || React.useLayoutEffect : React.useEffect
Nothing
use useInsertionEffect if available
Already landed with https://github.com/cssinjs/jss/pull/1604.
Already landed with #1604.
Thanks to inform me, I will close this PR
released 10.9.1-alpha.0
Corresponding Issue(s):
What Would You Like to Add/Fix?
Well, our React
peerDependencies
is>=16.8.6
so some projects maybe use React 18 we can useuseInsertionEffect
if available, also change is just one lineTodo
Expectations on Changes
Nothing
Changelog
use
useInsertionEffect
if available