Skip to content

[BUG] [SolidJs] Page change causes draggables to raise error [Workaround included] #1041

@shayanhabibi

Description

@shayanhabibi

This issue was resolved by the library author @juliangarnier via their subscribers discord immediately. Highly recommend supporting the author for their work, and for access to community support via the author and associated subscribers.

Issue

On Solid-Js SolidStart framework, changing pages from a page with Draggables would raise an error:

Image

This would occur despite ensuring resource cleanup:

onCleanup(() => {
    dragger.revert();
});

Env

Windows 10 AMD 64bit
SolidStart 1.1.5
animejs v4.0.2

Fix/Work around

As per the library author, the temporary fix is to explicitly disconnect the resizeObserver prior to resource cleanup.

onCleanup(() => {
    dragger.resizeObserver.disconnect();
    dragger.revert();
});

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions