Skip to content

Difference between computed() and computedFn() #3705

Answered by urugator
lekevin-microsoft asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe the part that isn't so obvious: If the computedFn is invalidated by an observable, it is recomputed with the previously passed params (the last one), if the result changes, caller is notified, re-runs, calls isEmpty again, but very likely with the same set of params, so it won't re-computed twice.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mweststrate
Comment options

@lekevin-microsoft
Comment options

@urugator
Comment options

@urugator
Comment options

Answer selected by lekevin-microsoft
@lekevin-microsoft
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants