Hacker News new | ask | show | jobs
by uzy777 277 days ago
Amen because of this we have useeffect and calling the whole component tree on a isloading change
2 comments

isLoading should be a boolean; it will maintain referential equality across renders and not cause a re-render unless it is an actual edge from false to true or vice versa.
what? what does what you said have anything to do with what I said? how does "data flowing down" now related to the use effect dependency cycle? are you new to programming?