Skip to content

fix(dev-server): avoid Android app crashes when opening DevTools#1371

Merged
jbroma merged 2 commits intomainfrom
fix/devtools-crashing-android
Mar 12, 2026
Merged

fix(dev-server): avoid Android app crashes when opening DevTools#1371
jbroma merged 2 commits intomainfrom
fix/devtools-crashing-android

Conversation

@jbroma
Copy link
Member

@jbroma jbroma commented Mar 12, 2026

Summary

  • intercept cross-origin Network.loadNetworkResource requests in the dev server instead of letting DevTools crash Android apps
  • keep same-origin requests on the default React Native path
  • add package-local unit coverage and package TypeScript/build config for colocated tests
  • add a changeset for the dev-server patch release

Verification

  • pnpm -C packages/dev-server exec tsc --noEmit
  • pnpm -C packages/dev-server exec tsc -p tsconfig.build.json --noEmit
  • tests/integration/node_modules/.bin/vitest run packages/dev-server/src/utils/tests/networkLoadResourceHandler.test.ts

Closes #1280
Closes #1299
Closes #1307

@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: 09e8624

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@callstack/repack-dev-server Patch
@callstack/repack Patch
@callstack/repack-plugin-expo-modules Patch
@callstack/repack-plugin-nativewind Patch
@callstack/repack-plugin-reanimated Patch
@callstack/repack-init Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repack-website Ready Ready Preview, Comment Mar 12, 2026 5:59pm

Request Review

@jbroma jbroma merged commit 1ab6e4e into main Mar 12, 2026
5 checks passed
@jbroma jbroma deleted the fix/devtools-crashing-android branch March 12, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant