Skip to content
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

Network request interceptor breaks apps that use MSW #753

Open
lgibso34 opened this issue Feb 22, 2023 · 0 comments
Open

Network request interceptor breaks apps that use MSW #753

lgibso34 opened this issue Feb 22, 2023 · 0 comments

Comments

@lgibso34
Copy link

lgibso34 commented Feb 22, 2023

React Native Debugger app version: latest
React Native version: 0.71.1
Platform: Android
Is real device of platform: No, Android simulator
Operating System: macOS

MSW source for React Native
https://github.com/mswjs/msw/blob/main/src/native/index.ts
https://github.com/mswjs/interceptors/tree/main/src/interceptors

Note that MSW for React Native does not spawn a server or add a service worker. It instead intercepts XMLHttpRequest's.

I assume that whatever the network interceptor code for react-native-debugger may do a similar thing and it shows requests as failed in the network tab of chrome and breaks the entire app.

I fully understand if this would fit better as a feature request or if you all won't touch it at all.

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

No branches or pull requests

1 participant