[Feature Request] Dispose method for cleaning up the three.js renderer inside the Hover Effect in SPA · Issue #50 · robin-dela/hover-effect · GitHub
More Web Proxy on the site http://driver.im/
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
Hi there, thanks for building this amazing library for us to use. I would like to request for the dispose() / clean() method inside the HoverEffect for cleaning up the three.js renderer before unmount in SPA, because the hoverEffect won't get destroyed in single page application, which creates the renderer only and leaves out a number of the webGL content, thus the warning in the console.
Something like...
var hoverEffect = new HoverEffect({...});
hoverEffect.dispose(); // <- we can then call this in beforeDestroy / before unmount phase
would be really helpful. Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hi there, thanks for building this amazing library for us to use. I would like to request for the dispose() / clean() method inside the HoverEffect for cleaning up the three.js renderer before unmount in SPA, because the hoverEffect won't get destroyed in single page application, which creates the renderer only and leaves out a number of the webGL content, thus the warning in the console.
Something like...
would be really helpful. Thanks a lot.
The text was updated successfully, but these errors were encountered: