Skip to content

Idiomatic and performant computed value? #48

Answered by justin-schroeder
duncsully asked this question in Q&A
Discussion options

You must be logged in to vote

Let me give a couple of thoughts on this @duncsully. The first thing to know is that reactivity in Arrow is fine-grained (unlike React). It only recomputes and re-renders values when the used dependencies are modified. Now, that is not the same thing as memoization but in many instances, it results in roughly the same effect with no specific need for actual memoization. Idiomatically speaking, Arrow’s goal (and it is still exploration, we’re all learning here) is to solve the same problems as the more prominent frameworks using only this 2kb library to “shim” a declarative API. In that sense, Arrow is as much about the discovery of novel techniques as anything else. So for your specific c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@duncsully
Comment options

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