Hi all -
I’ve got an application that is social-media-like. I have a route that runs a query. In the component, I map over the results and render the data. In each iteration, I call a component that also runs a query (gets information about the user viewing the page to get avatar, username, etc). I’m running into an issue where because the child query is the last to complete, React is scrolling to the component on the page instead of being at the top of the browser window.
So… that got me thinking about best practices. Is having queries inside of child components bad form? Or is there a way to have child queries, but prevent this behavior?
Let me know.