RFC: Component-level Visibility-based Query Management #9934
Unanswered
minseong0324
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
RFC: Component-level Visibility-based Query Management
Implementation
Here
Problem
refetchOnWindowFocusworks well, but it's window-scoped.In practice, I often need finer control:
Doing this manually means setting up IntersectionObserver, tracking state, coordinating invalidation... it adds up.
Proposal
Visibility-based query management at the component level.
Hook
Component
How it works
Use cases
Third-party Widget Integration
Isolated Feature Modules
MFE Portal
On window focus, only visible sections refetch — each with their own QueryClient.
Open questions
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions