SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Deprecate XHRInterceptor and WebSocketInterceptor APIs (#54869)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54869

These APIs are unused within React Native since https://github.com/facebook/react-native/pull/54868, and we now implement the `Network` CDP domain in core (React Native DevTools and other CDP clients).

These APIs are private under the Strict TypeScript API, however have some open source usages in Reactotron and Rozenite, which is why we aren't removing these immediately.

We intend to remove these APIs in future, but with no immediate planned timeline.

Changelog:
[General][Deprecated] - Deprecate `XHRInterceptor` and `WebSocketInterceptor` APIs. Developer tools should use the CDP `Network` domain instead.

Reviewed By: vzaidman, javache

Differential Revision: D89051528

fbshipit-source-id: d0c0f87f2663d92fa08be20cc674ab4345a104d6
A
Alex Hunt committed
41380f39aba22913a2aa45a951a36cacc95fb57a
Parent: 72097f0
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 12/12/2025, 4:20:27 PM