🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
Here is an example of what I mean, data for Typescript is always a RoomProductI[] type, that is, the type that the function returns, without processing what might return undefined
Also pay attention to the auxiliary text under the variable definition in the vscode popup window
Describe the bug
Here is an example of what I mean, data for Typescript is always a RoomProductI[] type, that is, the type that the function returns, without processing what might return undefined Also pay attention to the auxiliary text under the variable definition in the vscode popup window
Your minimal, reproducible example
I'm lazy, I can't create it now
Steps to reproduce
Dependencies:
I have already tried to install the latest version of typescript and the one that stands in expo by default
TS config file:
I have already tried to remove the lines from tsconfig.json and restart but the result is the same
Expected behavior
Setup react native expo project and download latest version of tanstack/react-query
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
This is
npx expo-env-info
outputexpo-env-info 1.2.0 environment info: System: OS: macOS 14.6.1 Shell: 5.9 - /bin/zsh Binaries: Node: 22.2.0 - /opt/homebrew/bin/node Yarn: 1.22.22 - /opt/homebrew/bin/yarn npm: 10.7.0 - /opt/homebrew/bin/npm Watchman: 2024.05.06.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.15.2 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5 IDEs: Android Studio: 2023.3 AI-233.14808.21.2331.11842104 Xcode: 15.4/15F31d - /usr/bin/xcodebuild npmPackages: expo: 51.0.31 => 51.0.31 react: 18.3.1 => 18.3.1 react-native: 0.75.2 => 0.75.2 npmGlobalPackages: eas-cli: 10.2.4 Expo Workflow: bare
Tanstack Query adapter
react-query
TanStack Query version
5.53.3, also try downgrade, same issue was appeared
TypeScript version
5.3.3/5.5.4
Additional context
Interesting...