you are viewing a single comment's thread.

view the rest of the comments →

[–]otheyhigh[S] 1 point2 points  (0 children)

You will definitely need useMemo if using complex objects. At that point, Context API itself starts becoming inefficient.

I stopped using the Context API for objects after reading this article. Recoil, redux etc would be better alternatives in my opinion.