Skip to content
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

Fix react devtools hitting an assert on launch #14320

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

TatianaKapos
Copy link
Contributor

@TatianaKapos TatianaKapos commented Jan 29, 2025

Description

Removes unnecessary call to Super::DispatchCommand, ViewManagerBase will just assert(false) on dispatch command. https://github.com/microsoft/react-native-windows/blob/main/vnext/Microsoft.ReactNative/Views/ViewManagerBase.cpp#L358. Seemed better just to remove the call incase Meta adds more methods we aren't supporting on Paper.

But let me know if the call is necessary for some reason I'm missing, we could also add a check to ignore the unsupported methods (see previous commit).

Type of Change

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

Why

react dev-tools will fail because upstream added the methods "highlightTraceUpdates", "highlightElements", and "clearElementsHighlights" and we only added those for Fabric, not Paper.

Resolves #14298

Testing

tested that react devtools works again!

Changelog

yes - Fixes react devtools hitting an assert on launch

Microsoft Reviewers: Open in CodeFlow

@TatianaKapos TatianaKapos requested review from a team as code owners January 29, 2025 23:14
@microsoft-github-policy-service microsoft-github-policy-service bot added Area: Debug Infrastructure Area: Paper Old Architecture Broad category for issues that apply to the RN "old" architecture of Cxx Modules + Paper labels Jan 29, 2025
@TatianaKapos TatianaKapos merged commit f24c9bc into microsoft:main Jan 31, 2025
63 checks passed
@TatianaKapos TatianaKapos deleted the tk-14298 branch January 31, 2025 20:57
TatianaKapos added a commit to TatianaKapos/react-native-windows that referenced this pull request Jan 31, 2025
TatianaKapos added a commit to TatianaKapos/react-native-windows that referenced this pull request Jan 31, 2025
TatianaKapos added a commit to TatianaKapos/react-native-windows that referenced this pull request Jan 31, 2025
TatianaKapos added a commit that referenced this pull request Jan 31, 2025
* backport Fix react devtools hitting an assert on launch (#14320)

* Change files
TatianaKapos added a commit that referenced this pull request Feb 1, 2025
* backport Fix react devtools hitting an assert on launch (#14320)

* Change files
TatianaKapos added a commit that referenced this pull request Feb 1, 2025
* backport Fix react devtools hitting an assert on launch (#14320)

* Change files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Debug Infrastructure Area: Paper Old Architecture Broad category for issues that apply to the RN "old" architecture of Cxx Modules + Paper
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attempting to use react-devtools with RNW 0.76 Paper Hits an Assert
2 participants