jhen0409 / react-native-debugger

The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools
MIT License
10.36k stars 809 forks source link

Network request interceptor breaks apps that use MSW #753

Open lgibso34 opened 1 year ago

lgibso34 commented 1 year ago

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.