-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix(query-core): allow function value of notifyOnChangeProps
query option to return undefined
#7441
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
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 e28ea02:
|
can you amend the signature in the docs as well please? |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 76abb16. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
also the jsdoc please: query/packages/query-core/src/types.ts Lines 319 to 326 in 3a8c2b1
|
@winghouchan will you get this PR over the finish line or should I do it? |
Run & review this pull request in StackBlitz Codeflow. commit: @tanstack/angular-query-devtools-experimental
@tanstack/angular-query-experimental
@tanstack/eslint-plugin-query
@tanstack/query-async-storage-persister
@tanstack/query-broadcast-client-experimental
@tanstack/query-core
@tanstack/query-devtools
@tanstack/query-persist-client-core
@tanstack/query-sync-storage-persister
@tanstack/react-query
@tanstack/react-query-devtools
@tanstack/react-query-next-experimental
@tanstack/react-query-persist-client
@tanstack/solid-query
@tanstack/solid-query-devtools
@tanstack/solid-query-persist-client
@tanstack/svelte-query
@tanstack/svelte-query-devtools
@tanstack/svelte-query-persist-client
@tanstack/vue-query
@tanstack/vue-query-devtools
templates
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7441 +/- ##
=========================================
+ Coverage 0 63.33% +63.33%
=========================================
Files 0 125 +125
Lines 0 4522 +4522
Branches 0 1259 +1259
=========================================
+ Hits 0 2864 +2864
- Misses 0 1430 +1430
- Partials 0 228 +228 |
…option to return `undefined` `undefined` is a valid return value for the function value of `notifyOnChangeProps`. See linked issue for more details. Fixes TanStack#7426.
@TkDodo: sorry, missed your messages. I've updated the signature in documentation in 43f0722. As far as I can tell it only affects React (and Vue, although they share the same docs). Please let me know if this is incorrect. How would you like the JSDoc updated? The current description isn't wrong, although I suppose it could be improved. Maybe something like below:
|
undefined
is a valid return value for the function value ofnotifyOnChangeProps
. See linked issue for more details.Fixes #7426.