-
Notifications
You must be signed in to change notification settings - Fork 81
feat: add getQueryClient for @suspensive/react-query packages #1842
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?
Conversation
🦋 Changeset detectedLatest commit: b48c998 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…/react-query-5, and @suspensive/react-query Co-authored-by: manudeli <[email protected]>
Co-authored-by: manudeli <[email protected]>
Co-authored-by: manudeli <[email protected]>
|
@copilot getQueryClient should be tested at runtime carefully too |
People can be co-author:
|
Co-authored-by: manudeli <[email protected]>
Added runtime tests for
|
|
Size Change: +147 B (+0.16%) Total Size: 89.9 kB
ℹ️ View Unchanged
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1842 +/- ##
=========================================
+ Coverage 0 93.49% +93.49%
=========================================
Files 0 46 +46
Lines 0 722 +722
Branches 0 180 +180
=========================================
+ Hits 0 675 +675
- Misses 0 41 +41
- Partials 0 6 +6
🚀 New features to boost your workflow:
|
Overview
Adds
getQueryClientutility function to@suspensive/react-query-4,@suspensive/react-query-5, and@suspensive/react-query.This function manages QueryClient instances in a server-safe manner:
Essential for SSR frameworks like Next.js.
Changes
getQueryClient.tsimplementation to both react-query-4 and react-query-5 packagesgetQueryClient.test-d.tsx)getQueryClient.spec.tsx) with 100% code coverageindex.ts,v4.ts, andv5.tsRuntime Tests Coverage
Usage
PR Checklist
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.