Content-Length: 336821 | pFad | http://redirect.github.com/preactjs/preact/discussions/4116

89 Should I use memo? · preactjs preact · Discussion #4116 · GitHub
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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://redirect.github.com/preactjs/preact/discussions/4116

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy