Skip to content

feat(svelte): auto-destroy haptics on unmount#33

Open
shizukushq wants to merge 1 commit intolochie:mainfrom
shizukushq:feat/svelte-auto-destroy
Open

feat(svelte): auto-destroy haptics on unmount#33
shizukushq wants to merge 1 commit intolochie:mainfrom
shizukushq:feat/svelte-auto-destroy

Conversation

@shizukushq
Copy link

Svelte usage currently requires manual cleanup with onDestroy(destroy).

This moves that cleanup into createWebHaptics, so the Svelte wrapper handles instance cleanup automatically on component unmount.

Also updates the Svelte example and docs snippet to match.

@vercel
Copy link

vercel bot commented Mar 19, 2026

@shizukushq is attempting to deploy a commit to the Lochie Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant