Skip to content

refactor: DebuggingRegistry to handle native highlights from React DevTools#41746

Closed
hoxyq wants to merge 4 commits into
react:mainfrom
hoxyq:export-D51708053
Closed

refactor: DebuggingRegistry to handle native highlights from React DevTools#41746
hoxyq wants to merge 4 commits into
react:mainfrom
hoxyq:export-D51708053

Conversation

@hoxyq

@hoxyq hoxyq commented Dec 1, 2023

Copy link
Copy Markdown
Contributor

Summary:
Changelog: [Internal]

Now using previously added highlightElements and clearElementsHighlights commands.

[Improvement] Since DebuggingRegistry is a singleton, it will only subscribe to the React DevTools events once and not number-of-rendered-AppContainers times.

All required functionality for highlighting elements on a single AppContainer will be added in one of the next diffs of this stack, changes are incremental.

Differential Revision: D51708053

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Dec 1, 2023
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51708053

@analysis-bot

analysis-bot commented Dec 1, 2023

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,582,052 +4,098
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 19,955,039 -3
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: af8c56a
Branch: main

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51708053

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51708053

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51708053

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51708053

Ruslan Lesiutin and others added 4 commits January 2, 2024 04:15
Summary:
Changelog: [Internal]

There will be a single DebuggingRegistry instance per runtime, which will be responsible for finding lowest AppContainer ancestor for highligthed component.

It will receive refs to inspected views (ancestors) as subscriptions and later will call all necessary methods.

For some methods actual implementation will be published in the next diffs.

Differential Revision: https://internalfb.com/D51536787

fbshipit-source-id: d0ee320c35f003901b9f1e46619970c4a51c6fd1
Summary: Changelog: [Internal]

Differential Revision: https://internalfb.com/D51603860

fbshipit-source-id: 0c517c57e14693a30348fe11880a4ebaa30be121
…ents

Summary: Changelog: [Internal]

Differential Revision: https://internalfb.com/D51603861

fbshipit-source-id: 8ad27736735f3ea2c33dc6d5f015fb17b9cc99cb
…vTools (react#41746)

Summary:
Pull Request resolved: react#41746

Changelog: [Internal]

Now using previously added `highlightElements` and `clearElementsHighlights` commands.

[Improvement] Since DebuggingRegistry is a singleton, it will only subscribe to the React DevTools events once and not *number-of-rendered-AppContainers* times.

All required functionality for highlighting elements on a single AppContainer will be added in one of the next diffs of this stack, changes are incremental.

Differential Revision: D51708053

fbshipit-source-id: 64004323fb5120e81243764f7ce5a67e01221ed1
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D51708053

@hoxyq hoxyq force-pushed the export-D51708053 branch from 281d926 to 2e1d543 Compare January 2, 2024 12:17
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 15, 2024
…eact DevTools (react#41746)

Summary:
Pull Request resolved: react#41746

Changelog: [Internal]

Now using previously added `highlightElements` and `clearElementsHighlights` commands.

[Improvement] Since DebuggingRegistry is a singleton, it will only subscribe to the React DevTools events once and not *number-of-rendered-AppContainers* times.

All required functionality for highlighting elements on a single AppContainer will be added in one of the next diffs of this stack, changes are incremental.

Differential Revision: D51708053

Reviewed By: sammy-SC

fbshipit-source-id: a6b79f79532602babbff9f484f506170492aed57
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 15, 2024
…eact DevTools (react#41746)

Summary:
Pull Request resolved: react#41746

Changelog: [Internal]

Now using previously added `highlightElements` and `clearElementsHighlights` commands.

[Improvement] Since DebuggingRegistry is a singleton, it will only subscribe to the React DevTools events once and not *number-of-rendered-AppContainers* times.

All required functionality for highlighting elements on a single AppContainer will be added in one of the next diffs of this stack, changes are incremental.

Differential Revision: D51708053

Reviewed By: sammy-SC

fbshipit-source-id: 97f85f7b236602da9bc1b7bacf6c347ce67faec8
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 15, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 1b9310e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants