(newIsStrictMode)
| 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; |
no test coverage detected
searching dependent graphs…