-
-
Notifications
You must be signed in to change notification settings - Fork 187
Migrate tutorial #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate tutorial #145
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it did a great job!!
...ent/tutorial/01-svelte/02-reactivity/03-reactive-statements/+assets/app-b/src/lib/App.svelte
Outdated
Show resolved
Hide resolved
...v/content/tutorial/01-svelte/06-bindings/04-select-bindings/+assets/app-a/src/lib/App.svelte
Outdated
Show resolved
Hide resolved
...v/content/tutorial/01-svelte/06-bindings/04-select-bindings/+assets/app-b/src/lib/App.svelte
Outdated
Show resolved
Hide resolved
@@ -1,11 +1,12 @@ | |||
<script> | |||
import { self } from 'svelte/legacy'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should avoid this
...t/tutorial/02-advanced-svelte/05-bindings/07-component-this/+assets/app-b/src/lib/App.svelte
Outdated
Show resolved
Hide resolved
...rial/02-advanced-svelte/09-special-elements/01-svelte-self/+assets/app-a/src/lib/File.svelte
Outdated
Show resolved
Hide resolved
$effect(() => { | ||
if ($navigating) { | ||
start = Date.now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could some of these be set by a derived? or not possible since a store is being used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have $derived.by(prev => ...)
then yes, but not like this (at least not in a straightforward way)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
80 additional lines. they pretty much all come from migrating slots. most places are smaller or the same on average. each slot instance adds 4 new lines though:
<script>
let { children } = $props();
</script>
…m error/redirect)
e1ee340
to
99cacda
Compare
Reverted the changes to Svelte for now, finished the changes for the SvelteKit tutorial (adjusted the MD files and also migrated towards SvelteKit 2.0, i.e. |
Took the migration script for a test drive, good results.
First commit is for SvelteKit tutorial, second for Svelte (we'll likely rewrite parts of it, but I thought it doesn't hurt in case we keep some parts like transitions which don't change).