Post

Thank you so much Dominik Dorfmeister & Dan Abramov for your answers! (Not @ you to avoid spamming you) Thanks to your answers, I was able to fact-check myself & to finish this article:

Ayc0@ayc0.dev

The other day, I was talking to a colleague about how to generate an unique UUIID for a react component instance. I figured it could be a good idea for a blog post. So I decided to write one 😁 ayc0.github.io/posts/consta...

The new docs, even say: “React will return the same value again if the dependencies have not changed since the last render” Does it mean that going forward, React will 100% treat dependencies as exact and only re-compute useMemo when they changed, but not otherwise?

It’s still the same: no semantic guarantee, only a performance improvement, your code should work exactly the same when useMemo is removed. If anything, offscreen rendering (<Activity>) will lead to more memos being thrown away.