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

Function unstable_clear

docs/external/js/react.development.js:2917–2927  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

2915 };
2916 }
2917 function unstable_clear(callback) {
2918
2919 var prevInteractions = interactionsRef.current;
2920 interactionsRef.current = new Set();
2921
2922 try {
2923 return callback();
2924 } finally {
2925 interactionsRef.current = prevInteractions;
2926 }
2927 }
2928 function unstable_getCurrent() {
2929 {
2930 return interactionsRef.current;

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected