# Best practice on sharing query data with children components

**URL:** <https://community.apollographql.com/t/best-practice-on-sharing-query-data-with-children-components/5555>\
**Category:** Client SDKs\
**Tags:** client, web\
**Created:** [January 24, 2023, 6:20pm UTC](https://community.apollographql.com/t/best-practice-on-sharing-query-data-with-children-components/5555 "2023-01-24T18:20:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crabara](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/crabara/32/3768_2.png) [@crabara](https://community.apollographql.com/u/crabara)\
**Post date:** [January 24, 2023, 6:20pm UTC](https://community.apollographql.com/t/best-practice-on-sharing-query-data-with-children-components/5555/1 "2023-01-24T18:20:02Z")

</div>

I don’t want to set a RV in an onComplete of the query. It causes some issues and is clunky. How can I retrieve query results from child components in react without passing a prop. Is using a fieldPolicy to populate an RV with the entire query a best practice?

---

<div class="post-metadata">

**Author:** ![JeffAuriemma](https://sea1.discourse-cdn.com/flex019/user_avatar/community.apollographql.com/jeffauriemma/32/2845_2.png) [@JeffAuriemma](https://community.apollographql.com/u/JeffAuriemma)\
**Post date:** [January 24, 2023, 8:41pm UTC](https://community.apollographql.com/t/best-practice-on-sharing-query-data-with-children-components/5555/2 "2023-01-24T20:41:41Z")

</div>

Hi @crabara 👋 welcome to the community forum! Can you share some more details on what you’re trying to accomplish? FWIW, if you’re initiating Query A in Component A, you can access that data in Component B from the cache via `useQuery` or `useFragment_experimental`.
