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. @BrixPresenter
@BrixRoute("dashboard")
@BrixSlot(BrixSlots.BRIX_BODY_SLOT)
public class DashboardPresenter extends Presenter<DashboardView> {
// No manual view binding needed
}
@UiView
public class DashboardView extends BrixView<Element, DashboardHandlers>
implements DashboardPresenter.DashboardView {
@Handlers DashboardHandlers handlers;
}
After reset, a new presenter/view is constructed on the next matching route. Persist important state in services or stores rather than the presenter.