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
Add ability for the developer to pass their own class into a new extend option. This class would extend the svelte-retag managed constructor passed to it so that they could add their own lifecycle hooks. When building this, we should attempt parity with how Svelte also implements this. Therefore, this would ideally match the functionality already documented here as much as possible: https://svelte.dev/docs/custom-elements-api#component-options
Describe the problem
Users cannot easily add their own integration or lifecycle hooks into the actual custom element itself that
svelte-retag
creates.Relates to #13.
Describe the proposed solution
Add ability for the developer to pass their own class into a new
extend
option. This class would extend thesvelte-retag
managed constructor passed to it so that they could add their own lifecycle hooks. When building this, we should attempt parity with how Svelte also implements this. Therefore, this would ideally match the functionality already documented here as much as possible: https://svelte.dev/docs/custom-elements-api#component-optionsExample usage modified from sveltejs/svelte#3091 (comment)
Alternatives considered
None.
Importance
nice to have
The text was updated successfully, but these errors were encountered: