-
-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bugfix/unmount memory leak #3708
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.
Thanks, looks great to me.
Note that those examples shows as a documentation, we don't want to pollute them.
Maybe we can add new example for testing just this, what do you think?
Sure, I just pushed an update moving the example to a new file. |
@g4rb4g3 you'll need to run yarn generate |
Doing so gives me an error about an invalid babel version, but it is exactly the one from package.json
So I updated it to 7.22.0 to run generate but did not commit it, maybe you can double check on that? |
* fix: memory not freed up when component mapview is unmounted * add (un)mount to Show Map example * update (un-)mount example * generate
Description
Fixes an issue that memory would not be freed up when the MapView was unmounted on iOS.
Checklist
CONTRIBUTING.md
yarn generate
in the root folder/example
app./example
)Screenshot OR Video
without this memory consumption increases whenever a new MapView is mounted

with this fix memory is freed up when a MapView is unmounted

Component to reproduce the issue you're fixing
I've updated the ShowMap.tsx and added an (un)mount button there. Whenever you press this button and a MapView is mounted memory usage increases but never decreases when unmounting unless this fix is in place.