Skip to content

Should I use memo? #4116

Answered by rschristian
rejhgadellaa asked this question in Q&A
Aug 28, 2023 · 1 comments · 4 replies
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 4 replies

Comment options

You must be logged in to vote
4 replies
@ackvf
Comment options

@rschristian
Comment options

@ackvf
Comment options

@rschristian
Comment options

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
3 participants