Skip to content

Commit

Permalink
fix: line component (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda authored Mar 11, 2021
1 parent 7e5b1ce commit 31aa77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export const Line = React.forwardRef<Line2, Props>(function Line(
return geom
}, [points, vertexColors])

React.useEffect(() => {
React.useLayoutEffect(() => {
line2.computeLineDistances()
}, [line2])
}, [points, line2])

React.useLayoutEffect(() => {
if (dashed) {
Expand Down

1 comment on commit 31aa77f

@vercel
Copy link

@vercel vercel bot commented on 31aa77f Mar 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.