I'm working with Relay Modern on Project. But I'm not sure how to send data from a place when I put fragment to place where Is component placed.
for example:
this is components composition
-Page (QueryRenderer)
---Header
---body
---List
--UserAutocomplete
List is Fragment, something like fragment PaymentsList on Payment
UserAutocomplete is also fragment but on RootQuery fragment UserAutocomplete_users on RootQuery
Actually, I put bout this fragment in query for QueryRenderer
graphql`
query PaymentQuery {
...PaymentsList
...UserAutocompleteFragment_users
}
But then I got data for UserAutocomplete here and I must send this data for UserAtocomplete component down through props. Is there some better way something like got this data from a store instead of sending them through props?