Skip to content

Commit

Permalink
Update Gallery.tsx
Browse files Browse the repository at this point in the history
- fixed no rerender when width is changed
  • Loading branch information
isoteriksoftware committed Nov 10, 2023
1 parent 884fc81 commit 59e5c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Gallery/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Gallery: React.FC<GalleryProps> = ({ children, item, ground, disableGround
outerRadius,
innerRadius,
};
}, [children]);
}, [children, width]);

return (
<GalleryContext.Provider
Expand Down

0 comments on commit 59e5c7c

Please sign in to comment.