MCPcopy Index your code
hub / github.com/microsoft/SandDance / updateDeferredValue

Function updateDeferredValue

docs/external/js/react-dom.development.js:15621–15637  ·  view source on GitHub ↗
(value, config)

Source from the content-addressed store, hash-verified

15619 }
15620
15621 function updateDeferredValue(value, config) {
15622 var _updateState = updateState(),
15623 prevValue = _updateState[0],
15624 setValue = _updateState[1];
15625
15626 updateEffect(function () {
15627 var previousConfig = ReactCurrentBatchConfig$1.suspense;
15628 ReactCurrentBatchConfig$1.suspense = config === undefined ? null : config;
15629
15630 try {
15631 setValue(value);
15632 } finally {
15633 ReactCurrentBatchConfig$1.suspense = previousConfig;
15634 }
15635 }, [value, config]);
15636 return prevValue;
15637 }
15638
15639 function rerenderDeferredValue(value, config) {
15640 var _rerenderState = rerenderState(),

Callers 1

Calls 2

updateStateFunction · 0.85
updateEffectFunction · 0.85

Tested by

no test coverage detected