Skip to content

Conversation

@seungsoo47
Copy link
Contributor

When using a google map's addListener(), do not call the Javascript object directly. This causes a memory leak.

Do:
map.addListener('bounds_changed', (event) => { BoundChanged.postMessage('') });
Do not:
map.addListener('bounds_changed', BoundChanged.postMessage);

When using a google map's addListener(), do not call the Javascript object directly.
This causes a memory leak.

Do:
 map.addListener('bounds_changed', (event) => { BoundChanged.postMessage('') });
Do not:
 map.addListener('bounds_changed', BoundChanged.postMessage);
@seungsoo47 seungsoo47 closed this Nov 8, 2024
@seungsoo47 seungsoo47 deleted the google_maps_241107 branch November 8, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant