How are signals going to be any different that state variables in React?

I was just watching Theo's videos on signals coming to javascript (https://www.youtube.com/watch?v=JvE_xQVIFF0) and I'm a little confused. I get that this will be there for all of javascript but still would this impact React or similar state-ful libraries/frameworks in any way. I mean, we already have these features in these that's the whole point of them being state-ful. Can somebody please explain what I'm missing here ?
Solution:
Yes, exactly, react already has a way of doing it but it's not standardized in any way. These signals would be standardized for the whole browser platform
10 Replies
Solution
FleetAdmiralJakob 🗕 🗗 🗙
Yes, exactly, react already has a way of doing it but it's not standardized in any way. These signals would be standardized for the whole browser platform
FleetAdmiralJakob 🗕 🗗 🗙
If it is standardized it would be easier to switch code between frameworks etc.
Mediocre
Mediocre•2mo ago
Right, so it's not going to affect these frameworks directly.
FleetAdmiralJakob 🗕 🗗 🗙
That's the choice of the framework authors. But it would make sense for the frameworks to build on top of these platform primitives because of standards. The proposal is made in such a way that frameworks can easily integrate this
Neto
Neto•2mo ago
it's going to, because in theory, you could remove a big chunk of the shipped code becuase you dont need to send the "engine" as well mostly using the browser impl
Mediocre
Mediocre•2mo ago
Makes sense. Yes, just not a lot of that magic code will be required from the framework. Thanks! @FleetAdmiralJakob 🗕 🗗 🗙 @nyx (Rustular DevRel)
Neto
Neto•2mo ago
(in theory) as well you could have one singular source of truth between multiple frameworks signal A can sync data between solid and svelte, as a example
Mediocre
Mediocre•2mo ago
yeah yeah it would be more like a javascript thing That would make things really interesting if you want to communicate between two apps built using different frameworks
Neto
Neto•2mo ago
the possibilities are great but the most immediate - smaller bundle size - even more performance
Mediocre
Mediocre•2mo ago
Yep
Want results from more Discord servers?
Add your server
More Posts
Next redirect() gives date.getTime() errorI use lucia auth with nextjs. And all things are okay until i add `redirect('/blog/login')` fuction Prisma/tRPC query failing 1/2 the time, but only in ProdSo I have an app, in my local dev environment, everything is working as expected in regards to the DTailwind CSS dynamically add classesAre there docs or some guidelines on how the tailwind unused css class purging works exactly and howNo typesaftey for dynamic returns``` // BE publicProcedure.input(z.object({shouldPopulateRelation: z.boolean()})).query(({ input, ctxHow do you cache tRPC server responses w/Next App Router?**What is the correct way to define the cache for tRPC endpoints with `create-t3-app@7.30.1` & Next I want to get information from the indexedDB and include this in the first render, without delayThe issue is that react code needs to be hydrated before being executed, so you can't get info from getting error while fetching from uploadthingi am creating a next.js project where user can upload pdf file which we save using upload thing and Next Auth google says redirect URI is broken but works on another projectHi! I am working on a project and I keep getting the error: Access blocked: This app’s request is Next not doing SSG routes?? Am I missing something?Hi, I need to do this page ssg instead of dynamic server rendered, i dont have any dependencies so iHow to fix jupyterhub issueAnyone have any experience with jupyterhub? I'm getting: TimeoutError: pod jupyterhub/jupyter-zfjry