-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: useBackgroundQuery
hook
#8694
Comments
Ooops - fixed, thanks @jpvajda! 🙇 |
useBackgroundQuery
hook
Our new design for This diverges from the original design of the hook described in this issue as one that pairs with |
This work was completed in #10755 and will be released with the next 3.8 alpha 🎉 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is a placeholder issue for tracking purposes. Details in #8783.
this new
useBackgroundQuery
hook allows a component to fetch data in a way that's managed by the React component lifecycle, without automatically subscribing to every future change in that data, allowing child components to update in place without requiring the parent component to rerender all its children.in other words:
useBackgroundQuery
executes as soon as the component mounts and can be used as a render optimization so you can ensure your component doesn't oversubscribe to data changing in the cache that it doesn't care about which can help you avoid some rerenders. The prime use case for this is lists. You might not want a parent component to rerender every time data from a single item in the list is updated.The text was updated successfully, but these errors were encountered: