-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opportunity to disable stroke for drawtypes "Circle" & "Polygon" #1480
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work great! Just fix the dependency array and it's ready for merge!
})); | ||
} | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [props.activeDrawType, props.drawStyle]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest that you destructure the props outside the useEffect and remove the eslint-disable row!
Something like:
const {activeDrawtype, drawStyle} = props;
useEffect(() => {...}, [activeDrawtype, drawStyle])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers! I'll make sure to remove the eslint-disable rows in the #1460 PR aswell.
Issue: #1177
Note: Additionally, I've conducted tests to verify the consistency of the stroke value 'none'/stroke style by exporting to a KML file and importing it across various software platforms, aside from Hajk. This was done to ensure alignment with the expected behavior across different environments.