From 82f1247f478447048d4febf3686f79981fad6e35 Mon Sep 17 00:00:00 2001 From: Sebastian Ware Date: Sun, 30 Oct 2022 11:13:39 +0100 Subject: [PATCH] Defer breaking change, enough that it is hinted in types --- packages/inferno/src/DOM/utils/common.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/inferno/src/DOM/utils/common.ts b/packages/inferno/src/DOM/utils/common.ts index fb74542bc..ca1c3058f 100644 --- a/packages/inferno/src/DOM/utils/common.ts +++ b/packages/inferno/src/DOM/utils/common.ts @@ -206,6 +206,8 @@ export function moveVNodeDOM(parentVNode, vNode, parentDOM, nextNode, animations if (flags & VNodeFlags.ComponentClass) { refOrInstance = vNode.children; + // TODO: We should probably deprecate this in V9 since it is inconsitent with other class component hooks + instanceProps = vNode.props; vNode = children.$LI; } else if (flags & VNodeFlags.ComponentFunction) { refOrInstance = vNode.ref;