Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
TanStack
/
query
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
4.2k
Star
50.1k
Code
Issues
81
Pull requests
140
Discussions
Actions
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
fix: type issue when void or undefined is returned from query function
- #3541
#3541
Merged
TkDodo
merged 11 commits into
TanStack:beta
TanStack/query:beta
from
yss14:fix/query-function-data-dont-accept-promise-undefined
yss14/react-query:fix/query-function-data-dont-accept-promise-undefined
Copy head branch name to clipboard
May 8, 2022
Conversation
Commits
11
聽(11)
Checks
Files changed
Merged
fix: type issue when void or undefined is returned from query function
#3541
TkDodo
merged 11 commits into
TanStack:beta
TanStack/query:beta
from
yss14:fix/query-function-data-dont-accept-promise-undefined
yss14/react-query:fix/query-function-data-dont-accept-promise-undefined
Copy head branch name to clipboard
Commits
Commits on Apr 21, 2022
fix(types): fix handling of promise return type in QueryFunctionData
yss14
committed
32f11ad
View commit details
Copy full SHA for 32f11ad
Browse repository at this point
fix(QueryFunction): return type restrict void and avoid union type distribution
yss14
committed
f421cc9
View commit details
Copy full SHA for f421cc9
Browse repository at this point
fix(QueryClient): make setQueryDefaults compatible with adjusted QueryFunction type
yss14
committed
59d6fd5
View commit details
Copy full SHA for 59d6fd5
Browse repository at this point
fix(useQueries): correct type inferrence in GetResults with new QueryFunction type
yss14
committed
523a7c3
View commit details
Copy full SHA for 523a7c3
Browse repository at this point
fix(tests): adjust all test cases which use any or never as query function return type to comply with new QueryFunction type
yss14
committed
7fbf570
View commit details
Copy full SHA for 7fbf570
Browse repository at this point
fix(tests): change incorrect query function return types of query tests from string to unknown
yss14
committed
3481b40
View commit details
Copy full SHA for 3481b40
Browse repository at this point
feature(useQuery): add test cases covering void and Promise<void> return types
yss14
committed
ca70f08
View commit details
Copy full SHA for ca70f08
Browse repository at this point
Commits on Apr 22, 2022
feature(useQueries): reject void or undefined as query function return type
yss14
committed
201cae1
View commit details
Copy full SHA for 201cae1
Browse repository at this point
feature(useQueries): add test cases for invalid query function return types
yss14
committed
b9168c2
View commit details
Copy full SHA for b9168c2
Browse repository at this point
Commits on May 4, 2022
Merge branch 'beta' of https://github.com/tannerlinsley/react-query into fix/query-function-data-dont-accept-promise-undefined
yss14
committed
05e26ae
View commit details
Copy full SHA for 05e26ae
Browse repository at this point
fix tsc error after rebasing lastest beta branch
yss14
committed
6984adc
View commit details
Copy full SHA for 6984adc
Browse repository at this point
You can鈥檛 perform that action at this time.