Skip to content

Add unstable_fastRefreshComplete CDP event#56273

Open
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D98493216
Open

Add unstable_fastRefreshComplete CDP event#56273
huntie wants to merge 1 commit intofacebook:mainfrom
huntie:export-D98493216

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Mar 30, 2026

Summary:
Adds a new, experimental ReactNativeApplication.unstable_fastRefreshComplete CDP event, emitted to subscribed active CDP sessions when a Fast Refresh update completes.

Notes

  • Adds an internal __react_native_application_cdp_binding runtime binding, intended for this event and other JS → ReactNativeApplication CDP domain messages in future.
  • As with D97486551, we reuse the changeId block in HMRClient.js, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Differential Revision: D98493216

Summary:
Adds a new, experimental `ReactNativeApplication.unstable_fastRefreshComplete` CDP event, emitted to all active CDP sessions when a Fast Refresh update completes.

**Notes**

- Adds an internal `__react_native_application_cdp_binding` runtime binding, intended for this event and other JS → `ReactNativeApplication` CDP domain messages in future.
    - This also introduces the concept of a *private runtime binding* — a separate field on `SessionState` allowing internal-only consumption without affecting clients.
- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Differential Revision: D98493216
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 30, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 30, 2026

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D98493216.

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant