Skip to content

feat: update Svelte framework version to 5 in templates - #827

Merged
amrbashir merged 2 commits into
tauri-apps:devfrom
Mef45:feat/svelte-update
Oct 23, 2024
Merged

feat: update Svelte framework version to 5 in templates#827
amrbashir merged 2 commits into
tauri-apps:devfrom
Mef45:feat/svelte-update

Conversation

@Mef45

@Mef45 Mef45 commented Oct 23, 2024

Copy link
Copy Markdown
Contributor

Svelte 5 has been officially released recently. The svelte and svelte-ts templates have been updated to this new version, allowing developers to utilize the improved features of Svelte 5.

<p>Click on the Tauri, Vite, and SvelteKit logos to learn more.</p>

<form class="row" on:submit|preventDefault={greet}>
<form class="row" onsubmit={greet}>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Svelte 5 changed the logic of adding modifiers to handlers, hence preventDefault was moved to a function according to the official recommendations.

@amrbashir amrbashir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@amrbashir
amrbashir merged commit 48f8e48 into tauri-apps:dev Oct 23, 2024
@Mef45
Mef45 deleted the feat/svelte-update branch October 23, 2024 14:26
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.

2 participants