Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gardenhedge
on March 24, 2023
|
parent
|
context
|
favorite
| on:
You might not need an effect
That is not what useMemo is for. It's for caching a result and only recalculating it if the dependencies have changed. The aim is to optimize performance. It is not intended for listening to prop changes.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: