-
Notifications
You must be signed in to change notification settings - Fork 142
fix(query-db-collection): sync on-demand tanstack-query lifecycle #1007
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
base: main
Are you sure you want to change the base?
fix(query-db-collection): sync on-demand tanstack-query lifecycle #1007
Conversation
π¦ Changeset detectedLatest commit: ed2944d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
fce1597 to
d6e09f5
Compare
KyleAMathews
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Could you make the one tweak & add a changeset to the .changeset? Thanks for putting up the fix!
| queries: { | ||
| gcTime: 5 * 60 * 1000, // 5 minutes | ||
| staleTime: 0, | ||
| staleTime: 100, // set a minimal staleTime to prevent a refetch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use Infinity as this could flake potentially on slow CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done β
5e72a27 to
1b0ac9f
Compare
1b0ac9f to
ed2944d
Compare
π― Changes
This PR addresses the issue #998 and restores the complete TanStack Query lifecycle when using on-demand collection synchronization.
β Checklist
π Release Impact