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
By using signals algorithm for detecting effects
We can automatically detect states even inside functions. This means
removing the need for states to be function arguments for the function to be reactive
state getter to be a internally subscribable function
any function that uses state internally used inside the template to be reactive by default which means no need to wrap a function with helper.
onStateUpdate(() => {
// handle
}) // <- can even consider adding list of states to react to
when(() => someState() > 2, ...) // would be reactive
What happens to helper/Helper?
If after this there is no usage, it can be deprecated.
Bonus
Introduce the onStateUpdate and make the second argument be a "reducer" type of function that the returned value is kept. This means, deprecating state unsubscriber.
Memoize state values and do shallow comparisons before broadcasting
Make state a standalone part
The text was updated successfully, but these errors were encountered:
By using signals algorithm for detecting effects
We can automatically detect states even inside functions. This means
What happens to helper/Helper?
If after this there is no usage, it can be deprecated.
Bonus
onStateUpdate
and make the second argument be a "reducer" type of function that the returned value is kept. This means, deprecating state unsubscriber.The text was updated successfully, but these errors were encountered: