MCPcopy Create free account
hub / github.com/microsoft/SandDance / unstable_subscribe

Function unstable_subscribe

docs/external/js/react.development.js:3080–3095  ·  view source on GitHub ↗
(subscriber)

Source from the content-addressed store, hash-verified

3078 }
3079
3080 function unstable_subscribe(subscriber) {
3081 {
3082 subscribers.add(subscriber);
3083
3084 if (subscribers.size === 1) {
3085 subscriberRef.current = {
3086 onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
3087 onInteractionTraced: onInteractionTraced,
3088 onWorkCanceled: onWorkCanceled,
3089 onWorkScheduled: onWorkScheduled,
3090 onWorkStarted: onWorkStarted,
3091 onWorkStopped: onWorkStopped
3092 };
3093 }
3094 }
3095 }
3096 function unstable_unsubscribe(subscriber) {
3097 {
3098 subscribers.delete(subscriber);

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected