Skip to content

Devtools not working on React Native Web #3943

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

Closed
Estevete opened this issue Jul 29, 2022 · 8 comments
Closed

Devtools not working on React Native Web #3943

Estevete opened this issue Jul 29, 2022 · 8 comments

Comments

@Estevete
Copy link

Estevete commented Jul 29, 2022

Describe the bug

Devtools are not working on React Native Web anymore. In v3, it used to work.

Your minimal, reproducible example

https://github.com/TanStack/query/tree/main/examples/react/react-native example

Steps to reproduce

  1. Get the https://github.com/TanStack/query/tree/main/examples/react/react-native example
  2. In file App.tsx, import & add <ReactQueryDevtools /> inside QueryClientProvider
  3. Launch project
  4. If package expo-font missing, add it. (v10.0.3)

Expected behavior

Devtools should be displayed, like v3.

How often does this bug happen?

No response

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 103.0.5060.134

react-query version

5.0.10

TypeScript version

4.3.5

Additional context

No response

@TkDodo
Copy link
Collaborator

TkDodo commented Aug 12, 2022

could this be related to #4017 and thus eventually to #3882 ?

If you see null being rendered, my guess is that the wrong entry point is being picked up.

@Fogh
Copy link

Fogh commented Aug 15, 2022

I have the same problem in v4. The Dev tool icon is not showing up

@TkDodo
Copy link
Collaborator

TkDodo commented Aug 19, 2022

@Estevete @Fogh can you please try it out with v4.3.0-beta.0 ?

@YZahringer
Copy link

@TkDodo on my side, the web app crash with the v4.3.0-beta.0
image

Works well in 4.0.10, but without the DevTools.

@TkDodo
Copy link
Collaborator

TkDodo commented Aug 19, 2022

Which bundler are you using? Seems to be the same as:

@YZahringer
Copy link

I use webpack 4.46.0 with Expo CLI

@TkDodo
Copy link
Collaborator

TkDodo commented Aug 23, 2022

@YZahringer @Fogh @Estevete can you please try out the latest beta version to see if it fixes your issue?

@YZahringer
Copy link

Everything works fine on my side with Expo SDK 46 on Web.
@TkDodo Thanks a lot 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants