Earlier quoted context omitted.
A derived state is certainly reactive.
Of course you can have reactive state, your complaint however was: "The react in react stands for reactivity, however it is not." [because] "Its entire state management is not reactive" React is primarily an UI library, not full state management library. And its UI is reactive.
Angular v22
81–84 of 84 posts
Re: Angular v22
#82Earlier quoted context omitted.
But why is push vs pull the definition of reactivity? I suppose we can say that there are different kinds of reactivity. Signals is one kind. Observables à la rxjs is a different kind (the whole model of programming with rxjs was referred to as "functional reactive programming"). Observables are push-based. Signals, as I heard, are a more complex primitive, which, under the hood, is push-pull. React's reactivity mode…
Maybe push pull wasn’t the best metaphor, but the point is that everything can be reactive, it only depends on how much boilerplate you need to write to achieve the desired result. Since react doesn’t have a true reactive model, you need to subscribe to changes manually (use effect) to create computations, while in signals it’s a primitive (computed). I actually created a lib that operates signals over reacts state m…
How do you mean? Since the render function reruns during every update to state/props, derived/computed values can be calculated from the updated state/props during rendering.
Re: Angular v22
#83Earlier quoted context omitted.
Maybe push pull wasn’t the best metaphor, but the point is that everything can be reactive, it only depends on how much boilerplate you need to write to achieve the desired result. Since react doesn’t have a true reactive model, you need to subscribe to changes manually (use effect) to create computations, while in signals it’s a primitive (computed). I actually created a lib that operates signals over reacts state m…
> you need to subscribe to changes manually (use effect) to create computations How do you mean? Since the render function reruns during every update to state/props, derived/computed values can be calculated from the updated state/props during rendering.
Re: Angular v22
#84Earlier quoted context omitted.
Of course you can have reactive state, your complaint however was: "The react in react stands for reactivity, however it is not." [because] "Its entire state management is not reactive" React is primarily an UI library, not full state management library. And its UI is reactive.
Agreed, the OP said that the r in rxjs stands for reactivity, so my point was the the names have little bearing on the actual design patterns achieved with the libs