Closed custardcream98 closed 1 month ago
onExitComplete is recreated every time the parent component rerenders when the presenceAffectsLayout prop of AnimatePresence is set to true, which unnecessarily recreates the safeToRemove callback.
onExitComplete
presenceAffectsLayout
AnimatePresence
true
safeToRemove
closes #2801
Thanks for the PR!
onExitComplete
is recreated every time the parent component rerenders when thepresenceAffectsLayout
prop ofAnimatePresence
is set totrue
, which unnecessarily recreates thesafeToRemove
callback.closes #2801