MCPcopy
hub / github.com/react/react / markCloned

Function markCloned

packages/react-reconciler/src/ReactFiberCompleteWork.js:205–209  ·  view source on GitHub ↗

* Tag the fiber with Cloned in persistent mode to signal that * it received an update that requires a clone of the tree above.

(workInProgress: Fiber)

Source from the content-addressed store, hash-verified

203 * it received an update that requires a clone of the tree above.
204 */
205function markCloned(workInProgress: Fiber) {
206 if (supportsPersistence) {
207 workInProgress.flags |= Cloned;
208 }
209}
210
211/**
212 * In persistent mode, return whether this update needs to clone the subtree.

Callers 3

updateHostComponentFunction · 0.85
updateHostTextFunction · 0.85
completeWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected