Skip to content

Components #3

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

Merged
merged 6 commits into from
Jul 22, 2024
Merged

Components #3

merged 6 commits into from
Jul 22, 2024

Conversation

pavletto
Copy link
Member

No description provided.

useEffect(() => {
if (refPassed && layerRef && layerRef.current) {
if (params.onVisibilityChange) layerRef.current?.events.on("visibilitychange", params.onVisibilityChange)
if (params.onAdd) layerRef.current?.events.on("add", params.onAdd)
Copy link
Member

Choose a reason for hiding this comment

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

No need ? here Already checked layerRef.current above

Copy link
Member

@Zemledelec Zemledelec left a comment

Choose a reason for hiding this comment

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

Cool!

@pavletto pavletto merged commit bdfa6b7 into master Jul 22, 2024
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