We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Disable re-renders on out of focus Screens example has a type error 'notifyOnChangeProps' is possibly 'undefined'.ts(18048)
'notifyOnChangeProps' is possibly 'undefined'.ts(18048)
changing it to notifyOnChangeProps?.current turns the error into
notifyOnChangeProps?.current
Property 'current' does not exist on type '("data" | "error" | "isError" | "isLoading" | "isLoadingError" | "isRefetchError" | "isSuccess" | "status" | "fetchNextPage" | "fetchPreviousPage" | "hasNextPage" | "hasPreviousPage" | ... 18 more ... | "fetchStatus")[] | "all"'. Property 'current' does not exist on type '("data" | "error" | "isError" | "isLoading" | "isLoadingError" | "isRefetchError" | "isSuccess" | "status" | "fetchNextPage" | "fetchPreviousPage" | "hasNextPage" | "hasPreviousPage" | ... 18 more ... | "fetchStatus")[]'.ts(2339)
https://tanstack.com/query/v4/docs/framework/react/react-native#disable-re-renders-on-out-of-focus-screens
query/docs/framework/react/react-native.md
Line 113 in 4f8221b
no type errors
None
No response
React
v4.36.1
v5.1.6
The text was updated successfully, but these errors were encountered:
97f274e
No branches or pull requests
Describe the bug
The Disable re-renders on out of focus Screens example has a type error
'notifyOnChangeProps' is possibly 'undefined'.ts(18048)
changing it to
notifyOnChangeProps?.current
turns the error intohttps://tanstack.com/query/v4/docs/framework/react/react-native#disable-re-renders-on-out-of-focus-screens
query/docs/framework/react/react-native.md
Line 113 in 4f8221b
Your minimal, reproducible example
https://tanstack.com/query/v4/docs/framework/react/react-native#disable-re-renders-on-out-of-focus-screens
Steps to reproduce
Expected behavior
no type errors
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
Tanstack Query adapter
React
TanStack Query version
v4.36.1
TypeScript version
v5.1.6
Additional context
No response
The text was updated successfully, but these errors were encountered: