konvajs / react-konva-utils

MIT License
57 stars 12 forks source link

Add dependency to allow for style changing #3

Closed jet11x closed 3 years ago

jet11x commented 3 years ago

In Html.tsx suggest adding divProps as well as shouldTransform to deps on useLayoutEffect

My use case was a pop-up box by a shape which allows shape properties to be changed. When they've changed you want the pop-up box to move, which I achieved by add the dependency.

lavrton commented 3 years ago

Just did it with react-konva-utils@0.1.4.