From 2665a327321172f58be0715dfe018f6a9c82058d Mon Sep 17 00:00:00 2001 From: Jani Simomaa Date: Wed, 20 Mar 2024 12:34:04 +0200 Subject: [PATCH] Fix hostconfig insertBefore requesting rerender fixes #408 (#470) --- packages/react/src/reconciler/hostconfig.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react/src/reconciler/hostconfig.js b/packages/react/src/reconciler/hostconfig.js index df821cfe..2ab063d2 100644 --- a/packages/react/src/reconciler/hostconfig.js +++ b/packages/react/src/reconciler/hostconfig.js @@ -113,6 +113,8 @@ function insertBefore(parent, child, beforeChild) const index = parent.getChildIndex(beforeChild); parent.addChildAt(child, index); + + parent.__reactpixi?.root?.emit(`__REACT_PIXI_REQUEST_RENDER__`, { detail: 'insertBefore' }); } // get diff between 2 objects