You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The objects created in the storageFor helper and then stored in storages are not being destroyed after each test instance. This means the event listener is not removed (as willDestroy does not trigger) and is leaking the app container.
This can we seen by running the test suite of this addon and taking a memory snapshot.
The text was updated successfully, but these errors were encountered:
@fsmanuel Hi, yeah i am using resetStorages but the objects inside of storages are not destroyed. I think this is because the Object returned by storageFor is wrapped in a computed property so ember doesn't know it needs to destroy it. I have created a PR with a fix. You should be able to see the leak if you run the tests of ember-local-storage and do a snapshot. Also for clarification the leak only occurs on objects created by storageFor and the objects created in the adapter are destroyed.
The objects created in the
storageFor
helper and then stored instorages
are not being destroyed after each test instance. This means the event listener is not removed (aswillDestroy
does not trigger) and is leaking the app container.This can we seen by running the test suite of this addon and taking a memory snapshot.
The text was updated successfully, but these errors were encountered: