-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Added a proof of concept for initialData making TData never undefined #3834
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fix(types): extract DefinedQueryResult and use that in tests
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 260175b:
|
Codecov Report
@@ Coverage Diff @@
## beta #3834 +/- ##
==========================================
- Coverage 97.11% 96.81% -0.30%
==========================================
Files 50 57 +7
Lines 2391 2671 +280
Branches 706 786 +80
==========================================
+ Hits 2322 2586 +264
- Misses 67 83 +16
Partials 2 2
Continue to review full report at Codecov.
|
@all-contributors add @mattpocock for code |
Is this going to be in V3 as well or only for V4? |
@Alcas1 only on v4. please see the issue description for the reasoning behind this: |
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.
nothing (mistake)
@TkDodo Hi, in what specific v4 version is this available? I've updated to [4.0.0-beta.23], but the Code example:
|
just use latest v4 ? |
@TkDodo Looking at https://www.npmjs.com/package/react-query?activeTab=versions, 4.0.0-beta.23 seems to be the latest? |
the package is |
@TkDodo Is it possible to make a query run only once, while having E.g.:
The goal here is not to have possibly undefined data, hence the |
maybe with |
closes #3310