Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call cleanup of insertion effects when hidden (#30954)
Summary: bypass Insertion effects do not unmount when a subtree is removed while offscreen. Current behavior for an insertion effect is if the component goes - *visible -> removed:* calls insertion effect cleanup - *visible -> offscreen -> removed:* insertion effect cleanup is never called This makes it so we always call insertion effect cleanup when removing the component. Likely also fixes facebook/react#26670 --------- DiffTrain build for commit facebook/react@d3d4d3a. Reviewed By: kassens Differential Revision: D62661120 Pulled By: josephsavona fbshipit-source-id: 81412821e4f100fb5acb4b54e8946fe03b389115 Co-authored-by: Rick Hanlon <rickhanlonii@fb.com>
- Loading branch information