DEV Community

Discussion on: React State Management in 2020

kbiedrzycki profile image
Kamil Biedrzycki • Edited

where it becomes hard to have it passed down

How would you describe a moment when it's becoming hard? What does it mean?

wicked7000 profile image

For me Id use the example of having to pass loading state around. Usually loading state is modified in multiple different components but the loading overlay is quite high up in the component tree. It then ends up being tricky to modify its state in a clean way and not having to have multiple loading components. (It could just be the case I don't know how to handle this type of thing correctly though)