Skip to content

Should I use memo? #4116

Answered by rschristian
rejhgadellaa asked this question in Q&A
Discussion options

You must be logged in to vote

You can use it, sure.

To paraphrase Marvin, it's in preact/compat as we think it's not a great API, comparatively. Signals are a much more attractive approach for dealing with unnecessary rerenders, and goes a lot further than memo does. We don't have memo in core because we don't think it's an essential piece, not because it doesn't serve a purpose.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rejhgadellaa
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