An issue was reported with the component crashing when used on a page with the mmenu library. This looks to be due to that library manipulating the DOM which results in the Voyager component being disconnected and reconnected somewhere else while still loading.
Currently the main Explorer component disconnect callback disposes of the app on the (now incorrect) assumption that we are done with it if disconnected.
|
this.application.dispose(); |
Removing this solves the issue but potentially leaks if the intent when disconnecting is for the component to be completely removed.
@sdumetz Interested on your take here, I know you've done some memory management work.
An issue was reported with the component crashing when used on a page with the mmenu library. This looks to be due to that library manipulating the DOM which results in the Voyager component being disconnected and reconnected somewhere else while still loading.
Currently the main Explorer component disconnect callback disposes of the app on the (now incorrect) assumption that we are done with it if disconnected.
dpo-voyager/source/client/ui/explorer/MainView.ts
Line 173 in 894eadc
Removing this solves the issue but potentially leaks if the intent when disconnecting is for the component to be completely removed.
@sdumetz Interested on your take here, I know you've done some memory management work.