MCPcopy
hub / github.com/plotly/dash / setIsStrictModeForDevtools

Function setIsStrictModeForDevtools

dash/deps/react-dom@18.2.0.js:4931–4955  ·  view source on GitHub ↗
(newIsStrictMode)

Source from the content-addressed store, hash-verified

4929 }
4930 }
4931 function setIsStrictModeForDevtools(newIsStrictMode) {
4932 {
4933 if (typeof unstable_yieldValue$1 === 'function') {
4934 // We're in a test because Scheduler.unstable_yieldValue only exists
4935 // in SchedulerMock. To reduce the noise in strict mode tests,
4936 // suppress warnings and disable scheduler yielding during the double render
4937 unstable_setDisableYieldValue$1(newIsStrictMode);
4938 setSuppressWarning(newIsStrictMode);
4939 }
4940
4941 if (injectedHook && typeof injectedHook.setStrictMode === 'function') {
4942 try {
4943 injectedHook.setStrictMode(rendererID, newIsStrictMode);
4944 } catch (err) {
4945 {
4946 if (!hasLoggedError) {
4947 hasLoggedError = true;
4948
4949 error('React instrumentation encountered an error: %s', err);
4950 }
4951 }
4952 }
4953 }
4954 }
4955 } // Profiler API hooks
4956
4957 function injectProfilingHooks(profilingHooks) {
4958 injectedProfilingHooks = profilingHooks;

Callers 8

getStateFromUpdateFunction · 0.70
constructClassInstanceFunction · 0.70
updateForwardRefFunction · 0.70
updateFunctionComponentFunction · 0.70
finishClassComponentFunction · 0.70

Calls 2

setSuppressWarningFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…