Skip to content
Discussion options

You must be logged in to vote

The goals are a little different:

  • shallow (or useShallow) is to compute again and compare the result. It's good and easy if re-computing is lightweight.
  • proxy-memoize (or other memoization techniques/libs) is to avoid re-computation completely. So, it's good if the computation is heavyweight, but it comes with some cost.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexander-ye
Comment options

Answer selected by alexander-ye
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