BackHandler listener not removed
londonoliver opened this issue · comments
When calling navigation.popToTop()
in a StackNavigator, willUnmount
is called before willBlur
, and the BackHandler listener is not removed.
hi @londonoliver, thanks for reporting. For the record, the problem is that willUnmount
is called first and removes the willBlur
subscription and the BackHandler.removeEventListener
in willBlur
is therefore not called.