Pavel S
04/07/2023, 1:58 PMTextField
, then click a button that saves my data and then pops the screen from StackNavigation
to return back. Immediately after that the callback from TextField
triggers the component one more time and calls a method that calls a InstanceKeeper.Instance
subclass. But the InstanceKeeperDispatcher
is destroyed at this point and the app crashes when trying to get the instance from it. What should I look into here to fix this behavior? Catching the exception thrown by InstanceKeeperDispatcher
doesn’t seem to be a good ideaArkadii Ivanov
04/07/2023, 2:18 PMPavel S
04/07/2023, 2:34 PM