Replies: 1 comment
-
If the Child component does not make a state judgment, the Child component will be almost impossible to reuse. Looking forward to best practice ideas. |
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
-
For example, suppose the following structure
Because the loading status has been checked in the
Page
component, theoretically, the data must exist in theChild
component, so it seems redundant to check the loading status again in theChild
component.I know this problem can be solved using solutions like
context
, and even this problem is not just the scope ofreact-query
, but I want to know ifreact-query
, as an asynchronous state management tool, has a more elegant solution to this problem.Beta Was this translation helpful? Give feedback.
All reactions