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

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

Closed
wants to merge 4 commits into from

Conversation

hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Dec 1, 2023

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
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Dec 1, 2023

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

hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Dec 1, 2023
…vTools (facebook#41746)

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
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Dec 1, 2023
…vTools (facebook#41746)

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
Copy link
Contributor

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

hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Dec 6, 2023
…vTools (facebook#41746)

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
Copy link
Contributor

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

hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Dec 6, 2023
…vTools (facebook#41746)

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
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Dec 6, 2023
…vTools (facebook#41746)

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
Copy link
Contributor

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

hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Dec 7, 2023
…vTools (facebook#41746)

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
Copy link
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 (facebook#41746)

Summary:
Pull Request resolved: facebook#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
Contributor

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

hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 4, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 9c638815ec006c1beaf833a21c483f0db2e9af1a
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 4, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 975eb73b9670c3aa9e749a45128fa19f708b784e
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 5, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: a73ba0eac6769db21cde9bb9c89098d9fa322ecc
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 5, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 984a8add4bb4a0148f3e2fa0c1896b3ca956aade
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 8, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 97175a2e97e1cbfcf10134cea2059121146f2880
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 8, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 352d44e62af8f262748c804c69716dda86fb7f23
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 8, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: fb4d78af263fb8d3505265ed0f589be484fbc385
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 11, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 49c0f906f95a76c0cd6e1a2c58d790b5f39858ab
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 11, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: bb50c8c2966242807d9bc8ffeb38d2d88718d5f9
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 15, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 0c393404d515d417ab18604f77aa25c02df4ce3d
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 15, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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 (facebook#41746)

Summary:
Pull Request resolved: facebook#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: 8b24f77fbad7838d1af8abbc444e74347eedd3b0
hoxyq pushed a commit to hoxyq/react-native that referenced this pull request Jan 15, 2024
…eact DevTools (facebook#41746)

Summary:
Pull Request resolved: facebook#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
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