Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: