-
Notifications
You must be signed in to change notification settings - Fork 53
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
docs(react-query): add docs for usePrefetchInfiniteQuery #1299
Conversation
Co-authored-by: Gwansik Kim <[email protected]> Co-authored-by: Juhyeok Kang <[email protected]>
People can be co-author:
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: 0 B Total Size: 64.5 kB ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1299 +/- ##
=======================================
Coverage 78.40% 78.40%
=======================================
Files 71 71
Lines 616 616
Branches 144 144
=======================================
Hits 483 483
Misses 127 127
Partials 6 6
|
@@ -5,10 +5,13 @@ import { Callout, Sandpack } from '@/components' | |||
The usePrefetchQuery does not return anything, it should be used just to fire a prefetch during render, before a suspense boundary that wraps a component that uses useSuspenseQuery. | |||
|
|||
```jsx /usePrefetchQuery/ | |||
import { usePrefetchQuery, queryOptions } from '@suspensive/react-query' |
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.
I removed queryOptions that can make readers confused by unnecessary context
|
||
```tsx Post.tsx |
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.
No depth to more Intuition
|
||
export const query = { | ||
post: (postId: number) => | ||
queryOptions({ |
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.
no queryOptions for easy understanding
CodSpeed Performance ReportMerging #1299 will create unknown performance changesComparing Summary
|
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.
ready for suspensive! 👍👍👍
Overview
I added docs for usePrefetchInfiniteQuery and I added @gwansikk @kangju2000 as co-author
PR Checklist