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
In Vue.js, the watch function gets the new and old watched value passed as arguments, which is really helpful in case the differences matter, or when I want to release the previous allocated resource and need the previous resource handle.
The effect in Angular works a little different and does not provide help here, so what about adding a extendedEffect that works similar to extendedComputed (or to Vue's watch) which is evaluated eagerly and gets the previous value as argument?
In Vue.js, the
watch
function gets the new and old watched value passed as arguments, which is really helpful in case the differences matter, or when I want to release the previous allocated resource and need the previous resource handle.The
effect
in Angular works a little different and does not provide help here, so what about adding aextendedEffect
that works similar toextendedComputed
(or to Vue's watch) which is evaluated eagerly and gets the previous value as argument?See also https://stackoverflow.com/questions/76200595/possible-to-access-the-old-value-in-angular-16s-effect-function-similar-to-vuejs-watch
The text was updated successfully, but these errors were encountered: