DEV Community

loading...

Discussion on: Don't duplicate your data - Learnings from code reviews

Collapse
chrisdrit profile image
ChrisDrit

Thanks @jkettmann keeping in mind a single source of truth was helpful.

This may be a bit out of scope, but you mentioned the useMemo hook when an:

array is very long or the filtering complicated

could you briefly talk about why that helps? Thanks!

Collapse
jkettmann profile image
Johannes Kettmann Author

Thanks Chris. That was indeed very short. I added a couple of sentences in the post. Hope that helps :)

Collapse
chrisdrit profile image
ChrisDrit

You rock! That was indeed very helpful, thanks!