2 queries in child component or 1 in parent component

lets say i have 2 components that need that same data to i query once in the parent component and pass it as props to the child or do i query once in each child component
2 Replies
Sybatron
Sybatron2y ago
Query it once if it's exact same Depends on the parent component too Will it be used for exactly these 2 components Or not every time And do you expect these child components to have different data in each at any given moment
teaonrocks
teaonrocks2y ago
nope they will always have the same data
Want results from more Discord servers?
Add your server