Skip to content
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

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

Albinahmetaj
Copy link
Contributor

@Albinahmetaj Albinahmetaj commented Feb 19, 2024

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.

Copy link
Member

@Hallbergs Hallbergs left a 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]);
Copy link
Member

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])

Copy link
Contributor Author

@Albinahmetaj Albinahmetaj Mar 1, 2024

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.

@Hallbergs Hallbergs merged commit bb65684 into develop Mar 5, 2024
@Hallbergs Hallbergs deleted the feature/1177-strokeDisabling branch March 5, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants