Skip to content

Commit 8f5615f

Browse files
committed
add condition to useEffect
1 parent 81aad17 commit 8f5615f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/components/mock-components/front-components/mouse-cursor/mouse-cursor-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const MouseCursorShape = forwardRef<any, ShapeProps>((props, ref) => {
6565
loadSvgWithFill(`${BASE_ICONS_URL}${fileName}`, `${stroke}`).then(img => {
6666
setImage(img);
6767
});
68-
}, []);
68+
}, [stroke]);
6969

7070
return (
7171
<Group {...commonGroupProps} {...shapeProps}>

0 commit comments

Comments
 (0)