Skip to content

Conversation

@emily8rown
Copy link
Contributor

Summary:
The FuseboxSessionObserver pattern (a native global object with boolean state, subscribers Set, and state change callback) is going to be reused for PerformanceTracerObserver in D92527815. This diff extracts the shared logic into reusable components:

JS: GlobalStateObserver class parameterized by global name and status property.
C++: installGlobalStateObserver() and emitGlobalStateObserverChange() functions parameterized by global name, status property, and callback name.

FuseboxSessionObserver and RuntimeTargetDebuggerSessionObserver now delegate to the shared implementations. No behavior change.

Differential Revision: D92720212

@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 Feb 10, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 10, 2026

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

emily8rown added a commit to emily8rown/react-native that referenced this pull request Feb 10, 2026
…ook#55485)

Summary:

The FuseboxSessionObserver pattern (a native global object with boolean state, subscribers Set, and state change callback) is going to be reused for PerformanceTracerObserver in D92527815. This diff extracts the shared logic into reusable components:

JS: GlobalStateObserver class parameterized by global name and status property.
C++: installGlobalStateObserver() and emitGlobalStateObserverChange() functions parameterized by global name, status property, and callback name.

FuseboxSessionObserver and RuntimeTargetDebuggerSessionObserver now delegate to the shared implementations. No behavior change.

Reviewed By: hoxyq

Differential Revision: D92720212
emily8rown added a commit to emily8rown/react-native that referenced this pull request Feb 11, 2026
…ook#55485)

Summary:

The FuseboxSessionObserver pattern (a native global object with boolean state, subscribers Set, and state change callback) is going to be reused for PerformanceTracerObserver in D92527815. This diff extracts the shared logic into reusable components:

JS: GlobalStateObserver class parameterized by global name and status property.
C++: installGlobalStateObserver() and emitGlobalStateObserverChange() functions parameterized by global name, status property, and callback name.

FuseboxSessionObserver and RuntimeTargetDebuggerSessionObserver now delegate to the shared implementations. No behavior change.

Changelog: [GENERAL] [CHANGED] - extracting shared logic for fuseboxSessionObserver into reusable components

Reviewed By: hoxyq

Differential Revision: D92720212
emily8rown added a commit to emily8rown/react-native that referenced this pull request Feb 11, 2026
…ook#55485)

Summary:

The FuseboxSessionObserver pattern (a native global object with boolean state, subscribers Set, and state change callback) is going to be reused for PerformanceTracerObserver in D92527815. This diff extracts the shared logic into reusable components:

JS: GlobalStateObserver class parameterized by global name and status property.
C++: installGlobalStateObserver() and emitGlobalStateObserverChange() functions parameterized by global name, status property, and callback name.

FuseboxSessionObserver and RuntimeTargetDebuggerSessionObserver now delegate to the shared implementations. No behavior change.

Changelog: [GENERAL] [CHANGED] - extracting shared logic for fuseboxSessionObserver into reusable components

Reviewed By: hoxyq

Differential Revision: D92720212
…ook#55485)

Summary:

The FuseboxSessionObserver pattern (a native global object with boolean state, subscribers Set, and state change callback) is going to be reused for PerformanceTracerObserver in D92527815. This diff extracts the shared logic into reusable components:

JS: GlobalStateObserver class parameterized by global name and status property.
C++: installGlobalStateObserver() and emitGlobalStateObserverChange() functions parameterized by global name, status property, and callback name.

FuseboxSessionObserver and RuntimeTargetDebuggerSessionObserver now delegate to the shared implementations. No behavior change.

Changelog: [GENERAL] [CHANGED] - extracting shared logic for fuseboxSessionObserver into reusable components

Reviewed By: hoxyq

Differential Revision: D92720212
@meta-codesync meta-codesync bot closed this in b0013ea Feb 11, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 11, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 11, 2026

This pull request has been merged in b0013ea.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @emily8rown in b0013ea

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

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.

3 participants