MCPcopy
hub / github.com/preactjs/preact / hydrate

Function hydrate

compat/src/render.js:97–102  ·  view source on GitHub ↗
(vnode, parent, callback)

Source from the content-addressed store, hash-verified

95}
96
97export function hydrate(vnode, parent, callback) {
98 preactHydrate(vnode, parent);
99 if (typeof callback == 'function') callback();
100
101 return vnode ? vnode._component : null;
102}
103
104let oldEventHook = options.event;
105options.event = e => {

Callers 7

hydrateRootFunction · 0.90
textarea.test.jsxFile · 0.90
hydrate.test.jsxFile · 0.90
render.test.jsxFile · 0.90
client.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…