Pass custom variables to queries at component level #55
-
Suppose I have multiple components in a page. Each component has it's own query with different variables. I would like to pass different custom variables to these queries. Given the only two ways to provide variable to queries ( Happy to provide any information to assist. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
relay-nextjs
only supports one page-level query; any additional queries should be done withuseLazyLoadQuery
. If you're looking to compose data for multiple components I recommend using fragments.