Skip to content

Commit

Permalink
fix: update useLayoutEffect to useIsomorphicLayoutEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley committed Aug 31, 2022
1 parent 4329ef0 commit d418524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allotment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const Allotment = forwardRef<AllotmentHandle, AllotmentProps>(
/**
* Add, remove or update views as children change
*/
useLayoutEffect(() => {
useIsomorphicLayoutEffect(() => {
if (dimensionsInitialized) {
const keys = childrenArray.map((child) => child.key as string);
const panes = [...previousKeys.current];
Expand Down

0 comments on commit d418524

Please sign in to comment.