Should I use memo? #4116
-
|
If I have a component that I'm pretty sure should only update when the props change, should I wrap it in I'm asking because it's located in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
You can use it, sure. To paraphrase Marvin, it's in |
Beta Was this translation helpful? Give feedback.
You can use it, sure.
To paraphrase Marvin, it's in
preact/compatas 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 thanmemodoes. We don't havememoin core because we don't think it's an essential piece, not because it doesn't serve a purpose.