mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: abandon useLayoutEffect
This commit is contained in:
parent
712c56cbb8
commit
e3ffc8f82b
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ export function SizeObserver({ type = 'div', children, ...rest }: Props) {
|
|||
)
|
||||
}, [])
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
React.useEffect(() => {
|
||||
if (features.resize) {
|
||||
const observer = new window.ResizeObserver(entries => {
|
||||
const entry = entries[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue