Skip to content

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NepeinAV
Copy link
Contributor

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 parser

Before:

2025-08-13.01.06.48.mp4

After:

2025-08-13.01.05.27.mp4

Copy link

vercel bot commented Aug 12, 2025

@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';
Copy link
Contributor

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.

Copy link
Contributor Author

@NepeinAV NepeinAV Aug 16, 2025

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?

Copy link
Contributor

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' 🙈

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

Successfully merging this pull request may close these issues.

2 participants