I wrote a brief note on this on my blog where I tried to reason about using the memoization pattern to cache expensive operations.
I think I'll explore it some more here before publishing a full on blog post.
These are more advanced topics I am glad I am getting curious about, such as in [[Advanced React]].
Have anything to add? You can reach out to me by email or You can find more of my stuff on my links page.