Skip to content

Commit

Permalink
fix(react-virtual): run _didMount in useIsomorphicLayoutEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
hophiphip authored Dec 9, 2024
1 parent dc3564b commit 49df294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-virtual/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function useVirtualizerBase<

instance.setOptions(resolvedOptions)

React.useEffect(() => {
useIsomorphicLayoutEffect(() => {
return instance._didMount()
}, [])

Expand Down

0 comments on commit 49df294

Please sign in to comment.