Replies: 4 comments 7 replies
-
Signals are not complete as far as I know and monkey patches the react, so it's not worth comparing at this moment |
Beta Was this translation helpful? Give feedback.
-
Are you referring to Preact Signals? They haven't submitted it to the benchmark so I can't compare it: https://krausest.github.io/js-framework-benchmark/current.html. If they add it to the benchmark I'd be happy to add it to my saved screenshot. I see they've done a lot of optimization so I'd be surprised if their speed isn't comparable, but Legend-State is unique in the array optimizations so they won't be able to beat the optimized mode. And to build on what @chakrihacker said, I don't really consider signals to be a comparable alternative since it seems to mainly be for reactive primitives and doesn't seem like a full solution for global state management (although I could be wrong about that). |
Beta Was this translation helpful? Give feedback.
-
I came looking for a general comparison with alternatives. The differences that jump out at me:
Can you think of anything else? A feature matrix would be great! |
Beta Was this translation helpful? Give feedback.
-
That's brilliant! I forgot to include 2-way binding in my list. The live examples are currently broken BTW (missing import?) 🪳 FWIW I consider destructuring a feature too. I've tinkered with Solid and currently Vue and it's a foot gun in both frameworks.
OMG that's genius 😍
Whaaa! So I compared your implementation with Valtio:
f076cd1 🚀
Do you know about
I noticed this 1 😁
I couldn't think of any tangible benefit no 🙊
This was arguably the important point so I'll replay separately! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
"Legend-State beats other React state libraries in both speed and memory usage. "
However,signal doesn't appear in the benchmark table。
I wounder if legend-state beats signal。
Beta Was this translation helpful? Give feedback.
All reactions