Skip to content

Conversation

@TatianaKapos
Copy link
Contributor

@TatianaKapos TatianaKapos commented Jan 31, 2025

Backport of #14320

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 31, 2025 22:49
@TatianaKapos
Copy link
Contributor Author

Need to backport this to 0.76 for XBOX!

@TatianaKapos TatianaKapos enabled auto-merge (squash) February 1, 2025 00:09
@TatianaKapos TatianaKapos merged commit 196b21d into microsoft:0.76-stable Feb 1, 2025
103 checks passed
@TatianaKapos TatianaKapos deleted the tk-76-14320 branch February 3, 2025 20:53
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