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

Function unstable_unsubscribe

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

Source from the content-addressed store, hash-verified

3094 }
3095 }
3096 function unstable_unsubscribe(subscriber) {
3097 {
3098 subscribers.delete(subscriber);
3099
3100 if (subscribers.size === 0) {
3101 subscriberRef.current = null;
3102 }
3103 }
3104 }
3105
3106 function onInteractionTraced(interaction) {
3107 var didCatchError = false;

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected