electric icon indicating copy to clipboard operation
electric copied to clipboard

Let's build a Svelte 5 example

Open ctwhome opened this issue 1 year ago • 5 comments

Now that we have the release version of svelte 5, it would be totally awesome to create an example with it. Eventually, could be even bigger to include it in the new sv cli from svelte as an installation option.

ctwhome avatar Nov 06 '24 07:11 ctwhome

Hey, great idea, would love to create Svelte bindings and an example using them.

We had https://github.com/conorbergin/svelte-electric-app for the old Electric. Alternatively may be easier to implement a useShape equivalent from scratch.

I'm not tracking the changes in Svelte 5 -- has the reactivity model changed much?

thruflo avatar Nov 06 '24 09:11 thruflo

Svelte 5 introduces runes, which is a new (better and more declarative) way of handling reactivity. It makes stores and the $: symbol a thing of the past. Now it is more reliable and easy to understand.

ctwhome avatar Nov 13 '24 20:11 ctwhome

Interested in a Svelte 5 showcase!

My dream is to have a fully OSS & self-hostable Firebase alternative with offline support (local document/table caching and optimistic updates to make the UI feel instantaneous).

MadeInPierre avatar Nov 19 '24 16:11 MadeInPierre

Sounds cool! I just did one with svelte 5 and it worked fine. Testing but I'm open to any feedback! It worked fine for my case. PS: I'd recommend and maybe need to point it out in the readme so that u need to go through the quickstarter.

milimyname avatar Jan 13 '25 18:01 milimyname

@milimyname 🔥 free fine-grained reactivity!

KyleAMathews avatar Jan 13 '25 18:01 KyleAMathews