MCPcopy Create free account
hub / github.com/testing-library/react-testing-library / hydrate

Function hydrate

src/pure.js:123–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122 return {
123 hydrate() {
124 /* istanbul ignore if */
125 if (!hydrate) {
126 throw new Error(
127 'Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.',
128 )
129 }
130 // Nothing to do since hydration happens when creating the root object.
131 },
132 render(element) {
133 root.render(element)
134 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…