toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

276
active users

#each

1 post1 participant0 posts today

{#each} causes memory leak for stream chat

svelte.dev/playground/hello-wo

Discussions: discu.eu/q/https://svelte.dev/

svelte.devHello world • Playground • Svelte
Replied in thread

@ramsey I love how everything has a 1:1 mapping.

So my CodeIgniter views become Svelte templates. I go through each one and replace eg <? foreach ($list as $item): ?> to {#each list as item} etc. which is surprisingly straightforward.

Then, the CI models & libraries I copy to $lib/server, keep all the function structure and SQL the same, and just migrate PHP syntax to JavaScript.

Each route function in the CI controllers ends up mapping to a +page.server.js load function in each route.