Skip to content

Commit

Permalink
Fix hostconfig insertBefore requesting rerender fixes #408 (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimomaa committed Mar 20, 2024
1 parent b488a8d commit 2665a32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/reconciler/hostconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2665a32

Please sign in to comment.