Skip to content

[Feature Request] Dispose method for cleaning up the three.js renderer inside the Hover Effect in SPA #50

@snowiewdev

Description

@snowiewdev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions