* Checks if our VNode type has a `forwardRef_` sigil, in which case it was created by our forwardRef implementation. * If so, we move the VNode's ref to it's props, which will be passed to the Component as its props. * * See VNode type at https://github.com/preactjs/preact/blob/55ee4bc069f84cf5e3
(vnode)
| 27 | * @param {*} vnode |
| 28 | */ |
| 29 | function newDiff(vnode) { |
| 30 | if (vnode['type']?.forwardRef_ && vnode['ref']) { |
| 31 | vnode['props']['ref'] = vnode['ref']; |
| 32 | vnode['ref'] = null; |
| 33 | } |
| 34 | oldDiff?.(vnode); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Reimplements forwardRef without dragging in everything from preact/compat. |
nothing calls this directly
no outgoing calls
no test coverage detected