Deactivation cleans up listeners, slots, and navigation interceptors. Detach handles view removal; teardown resets cached instances so a fresh presenter/view is created on the next activation.
deactivate() call.onDeactivated(), reset the component provider. @Override
protected void onDeactivated() {
disposables.forEach(AutoCloseable::close);
}
@Override
protected void onRemoved() {
view.clear();
}
After reset, a new presenter/view is constructed on the next matching route. Persist important state in services or stores rather than the presenter.