-
Notifications
You must be signed in to change notification settings - Fork 8
fix(network-activity-plugin): rewrite cookie parser to match RN specific logic #61
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
base: main
Are you sure you want to change the base?
Conversation
@NepeinAV is attempting to deploy a commit to the Callstack Team on Vercel. A member of the Team first needs to authorize it. |
@@ -10,6 +10,7 @@ import { getNetworkRequestsRegistry } from './network-requests-registry'; | |||
import { getBlobName } from '../utils/getBlobName'; | |||
import { getFormDataEntries } from '../utils/getFormDataEntries'; | |||
import { XHRInterceptor } from './xhr-interceptor'; | |||
import { applyReactNativeResponseHeadersLogic } from '../../utils/applyReactNativeResponseHeadersLogic'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are crossing the device <-> DevTools UI boundary. This is potentially dangerous and can result in unwanted modules to be included in the bundle. I suggest moving it to the 'shared' directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you just want to move this file to a shared directory? Right now it is only used on RN side (and always will be), so maybe not shared
, but react-native
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My fault. Noticed relative paths in both sub-directories and assumed the source is in 'ui' 🙈
Main Features: Enhanced Cookie Parser and Multi-Value Header Support
What's Done:
• Fixed cookie parsing to match React Native specific networking logic
• Headers that contain array values now display as multiple rows
• Simplified and refactored
CookiesTab.tsx
to use the new parserBefore:
2025-08-13.01.06.48.mp4
After:
2025-08-13.01.05.27.mp4