Replies: 3 comments 3 replies
-
This twitter discussion about signals by Evan You may provide insight to the discussion, and I recommend anyone who wants to contribute to this discussion to give it a quick read. |
Beta Was this translation helpful? Give feedback.
-
The discussion was about Angular signals, this is a Solid signal |
Beta Was this translation helpful? Give feedback.
-
Following the thread that Evan You participated in, I think either Angular nor Solid signals are necessary for the API. The semantic is the same, and it would just add different ways to accomplish the same thing. This would create a chasm in how people will use the library, and will force you to work a lot to maintain compatibility for something that is very superficial in the end. |
Beta Was this translation helpful? Give feedback.
-
The discussion at the table is whether I should introduce a new reactive primitive called a signal. A signal consists of a getter and a setter:
Heres an example of a signal that tracks an integer count
you would then use
count
to get the current up to date value, orsetCount(count + 1)
to cause an update to this signal (increment).Ideally signals are compatible to be used as a dependency for a
computed
primitive, or forwatchEffect
Beta Was this translation helpful? Give feedback.
All reactions