Files
react-native/Libraries
Joshua Gross 468bc62da3 Animated JS: clear out component refs on unmount
Summary:
"The instance should not stick around after unmount..." - Tim Yung, 2021

I have a hypothesis that, if a component instance of an animated component sticks around after unmount, it could cause memory leaks due to references to Fabric ShadowNodes across the JSI (this would not impact non-Fabric... in theory).

Wild guess. If OOMs disappear then maybe this hypothesis is correct, but it's a long shot. I figure there's ~no harm in doing this cleanup here anyway.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D26650348

fbshipit-source-id: 90633db650b65755cacfb52344e7b53e46c9b125
2021-02-24 17:15:30 -08:00
..
2021-02-04 12:48:13 -08:00
2021-02-22 18:30:01 -08:00
2020-10-18 20:30:55 -07:00
2021-02-04 17:17:17 -08:00
2021-02-15 21:07:25 -08:00
2021-02-22 16:56:48 -08:00
2021-02-17 12:20:26 -08:00
2020-02-21 10:34:40 -08:00