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

Function track

docs/external/js/react-dom.development.js:1882–1889  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1880 }
1881
1882 function track(node) {
1883 if (getTracker(node)) {
1884 return;
1885 } // TODO: Once it's just Fiber we can move this to node._wrapperState
1886
1887
1888 node._valueTracker = trackValueOnNode(node);
1889 }
1890 function updateValueIfChanged(node) {
1891 if (!node) {
1892 return false;

Callers 2

setInitialPropertiesFunction · 0.85
diffHydratedPropertiesFunction · 0.85

Calls 2

getTrackerFunction · 0.85
trackValueOnNodeFunction · 0.85

Tested by

no test coverage detected