You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great proposal. I'm willing to try to apply signals into next React project I'm going to work on, and the most common library for that has very custom API and I would prefer to stick to a "standard" library for signals even if this proposal has only stage 1. Does anybody knows if there is a React library that supports this proposal?
The text was updated successfully, but these errors were encountered:
@NullVoxPopuli that's correct. I was thinking of something that behaves similarly to effect and re-renders component when signal is triggered.
<div>{signal.get()}</div>
@preact/signals-react at this case requires to call useSignals() at the beginning of every component, and it can be avoided with a Babel plugin. Unfortunately, I couldn't yet figure out how to implement a hook like that and the only idea I have is to make a wrapper, but that is almost an anti-pattern today.
Thanks for the great proposal. I'm willing to try to apply signals into next React project I'm going to work on, and the most common library for that has very custom API and I would prefer to stick to a "standard" library for signals even if this proposal has only stage 1. Does anybody knows if there is a React library that supports this proposal?
The text was updated successfully, but these errors were encountered: