bimspot / xeokit-react

Integratation of the xeokit viewer into a React application.
33 stars 22 forks source link

Destroy viewer object on component unmount #4

Closed barnabasmolnar closed 5 years ago

barnabasmolnar commented 5 years ago

As per the title. We probably don't want the viewer to hang around in memory when the component gets unmounted. See https://github.com/xeokit/xeokit-sdk/issues/79#issuecomment-502087668 for why this should be implemented.

barnabasmolnar commented 5 years ago

Implemented in: https://github.com/bimspot/xeokit-react-demo/commit/147b0c876f8c5cd2fa3be4b449873eb231e7cb73