Skip to content

Conversation

mcous
Copy link
Collaborator

@mcous mcous commented Feb 11, 2025

Uncovered two issues with the render return types when using Svelte 5 with legacy (non-runes) components:

  • The render function should accept events as an option
  • The returned component should not have $set, $on, nor $destroy methods, which will error at runtime

@mcous mcous marked this pull request as ready for review February 11, 2025 17:56
@mcous mcous merged commit e86dada into main Feb 11, 2025
28 checks passed
@mcous mcous deleted the fix/legacy-types-in-svelte-5 branch February 11, 2025 17:59
Copy link

🎉 This PR is included in version 5.2.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant