Michael Landis
1 min readJan 20, 2020

--

I’m not certain I’d go so far as to say that context splitting is *preferred* to memoization. It’s certainly an alternative, but at the cost of making your data structure more complex. Memoization is a consistent pattern that should be in the toolbelt of every React Developer and should not be that unfamiliar.

If you have rapidly changing data in a context that should only impact specific components, it might make more sense to use a more robust data store such as Redux.

--

--

Michael Landis
Michael Landis

Written by Michael Landis

Front-end web developer, React enthusiast, vagabond.

No responses yet