Skip to content

Add unstable_fastRefreshComplete CDP event (#56273)#56273

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

Add unstable_fastRefreshComplete CDP event (#56273)#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

  • As with D97486551, we reuse the changeId block in HMRClient.js, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings

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.

Summary:

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings

Differential Revision: D98493216
@meta-codesync meta-codesync Bot changed the title Add unstable_fastRefreshComplete CDP event Add unstable_fastRefreshComplete CDP event (#56273) Apr 1, 2026
@huntie huntie force-pushed the export-D98493216 branch from b185b42 to 860cef5 Compare April 1, 2026 10:12
@meta-codesync meta-codesync Bot closed this in 2bcb3e1 Apr 1, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label Apr 1, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 1, 2026

This pull request has been merged in 2bcb3e1.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 2bcb3e1

When will my fix make it into a release? | How to file a pick request?

@huntie huntie deleted the export-D98493216 branch April 1, 2026 21:52
huntie added a commit to huntie/react-native that referenced this pull request Apr 9, 2026
Summary:
Pull Request resolved: facebook#56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103
huntie added a commit to huntie/react-native that referenced this pull request Apr 14, 2026
Summary:
Pull Request resolved: facebook#56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103
huntie added a commit to huntie/react-native that referenced this pull request Apr 14, 2026
Summary:
Pull Request resolved: facebook#56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103
huntie added a commit to huntie/react-native that referenced this pull request Apr 14, 2026
Summary:
Pull Request resolved: facebook#56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103
huntie added a commit to huntie/react-native that referenced this pull request Apr 16, 2026
Summary:
Pull Request resolved: facebook#56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103
huntie added a commit to huntie/react-native that referenced this pull request Apr 16, 2026
Summary:
Pull Request resolved: facebook#56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103
gabrieldonadel pushed a commit that referenced this pull request Apr 16, 2026
* Update Metro to 0.83.6

* Add unstable_fastRefreshComplete CDP event (#56273)

Summary:
Pull Request resolved: #56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in 5d09e43

When will my fix make it into a release? | How to file a pick request?

fabriziocucci pushed a commit that referenced this pull request May 1, 2026
…mplete CDP event (#56639)

* Add performance marker for Fast Refresh update (#56176)

Summary:
Pull Request resolved: #56176

NOTE: Resubmission of D84624705.

Adds a prominent vertical "Fast Refresh ⚛︎" marker entry in the performance timeline when a Fast Refresh update is complete.

Changelog: [Internal]

Reviewed By: GijsWeterings

Differential Revision: D97486551

fbshipit-source-id: 4c70b674370bab06f02e8d356bbd2979c9686a44

* Add unstable_fastRefreshComplete CDP event (#56273)

Summary:
Pull Request resolved: #56273

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

**Notes**

- As with D97486551, we reuse the `changeId` block in `HMRClient.js`, ensuring duplicate updates for the same change are not reported.

Changelog: [Internal]

Reviewed By: GijsWeterings, hoxyq

Differential Revision: D98493216

fbshipit-source-id: b0b81a210fb84873e9358aa5484038062f110103

* Bump Metro to ^0.84.3

Metro 0.84.3 adds `changeId` to HMR `update-done` messages,
which is required by the `unstable_fastRefreshComplete` CDP
event and the Fast Refresh performance marker to deduplicate
events across multiple updates for the same file change.

---------

Co-authored-by: Alex Hunt <huntie@meta.com>
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants