Get query data of another component #8237
Unanswered
Gabriel-Passoss
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a date-picker component that makes a request to my server based on the selected date. I would like to access this information that is cached in another component to build the statistics screen, but apparently the statistics component loads before finishing loading the sales information. Would it be possible for me to force the query key data to exist before displaying the component?
And I would like to avoid using 'use client' in their parent component, as Next does not recommend that an entire page be a client component.
Beta Was this translation helpful? Give feedback.
All reactions