Ancestors

Toot

Written by Matthias Andrasch on 2025-01-03 at 10:40

Why can't we just use

// sharedState.svelte.js

export const searchText = $state("");

in the new #Svelte v5?

Mat Simon was so kind to explain it to me, I turned my learnings (and his answers) into a short blog post: https://dev.to/mandrasch/svelte-5-share-state-between-components-for-dummies-4gd2 Critical feedback welcome!

[#]javascript #webdev

=> More informations about this toot | More toots from mandrasch@social.tchncs.de

Descendants

Written by Mario on 2025-01-03 at 14:38

@mandrasch State management is a recurring topic that reminds of why I enjoy things like Livewire or Inertia.js, as there the only thing that matters is the backend's state. :)

=> More informations about this toot | More toots from mariohamann@indieweb.social

Written by Matthias Andrasch on 2025-01-05 at 08:53

@mariohamann πŸ‘Played around with Livewire & Inertia a bit in the past, very interesting. Would have liked to experience it in a real world project, but no jobs out there unfortunately.

For hobby projects, static site generation is imho very helpful with SvelteKit = easy and cheap deployment anywhere. Opt-in for SSR only if needed.

And it's always an option to use Svelte / Vue / etc. within PHP CMSes for very interactive stuff. Like in journalism, where you don't need backend state.

=> More informations about this toot | More toots from mandrasch@social.tchncs.de

Written by Matthias Andrasch on 2025-01-05 at 08:56

@mariohamann Matthias Stahl from newspaper SPIEGEL does a lot of stuff with Svelte, so it's more about reactive UI state https://youtube.com/@h_i_g_s_c_h_videos?si=Dr7vvfP9EzhrIVXa

=> More informations about this toot | More toots from mandrasch@social.tchncs.de

Written by Tracking Token Disrespector on 2025-01-05 at 08:56

πŸ€– Tracking strings detected and removed!

πŸ”— Clean URL(s):

https://youtube.com/@h_i_g_s_c_h_videos

❌ Removed parts:

?si=Dr7vvfP9EzhrIVXa

=> More informations about this toot | More toots from c558c7cc69bbda3c271782b736babc64acd2da258b14f356dbca966cb0b7b89e@mostr.pub

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113763998708833522
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
291.527702 milliseconds
Gemini-to-HTML Time
1.128746 milliseconds

This content has been proxied by September (3851b).