Skip to content

Conversation

@iamAbhi-916
Copy link
Contributor

@iamAbhi-916 iamAbhi-916 commented Dec 16, 2025

Description

Switching bundles in playground crashes in main with assertion.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

Fix crash, makes RNW playground stable.

Resolves #15477

What

What changes were made to the codebase to solve the bug, add the functionality, etc. that you specified above.

Screenshots

switching_bundle_fix.mp4

Testing

tested in playground

Changelog

Should this change be included in the release notes: indicate no

Microsoft Reviewers: Open in CodeFlow

@iamAbhi-916 iamAbhi-916 requested a review from a team as a code owner December 16, 2025 07:16
Copy link
Contributor

@vineethkuttan vineethkuttan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@sundaramramaswamy sundaramramaswamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@iamAbhi-916 iamAbhi-916 merged commit 273c9a7 into microsoft:main Dec 16, 2025
30 checks passed
@iamAbhi-916 iamAbhi-916 deleted the switching_bundles_fix branch December 16, 2025 15:42
winrt::Microsoft::ReactNative::ReactCoreInjection::SetTopLevelWindowId(
host.InstanceSettings().Properties(), reinterpret_cast<uint64_t>(hwnd));

// Nudge the ReactNativeHost to create the instance and wrapping context
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am just curious why this change is considered to be correct?
How the view options are updated if they are changed after the instance reload?
The PR description says nothing about it.

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.

Playground crashes when we switch from one bundle to another

4 participants