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

Function canHydrateTextInstance

docs/external/js/react-dom.development.js:7767–7775  ·  view source on GitHub ↗
(instance, text)

Source from the content-addressed store, hash-verified

7765 return instance;
7766 }
7767 function canHydrateTextInstance(instance, text) {
7768 if (text === '' || instance.nodeType !== TEXT_NODE) {
7769 // Empty strings are not parsed by HTML so there won't be a correct match here.
7770 return null;
7771 } // This has now been refined to a text node.
7772
7773
7774 return instance;
7775 }
7776 function isSuspenseInstancePending(instance) {
7777 return instance.data === SUSPENSE_PENDING_START_DATA;
7778 }

Callers 1

tryHydrateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected