1. Domino Brix
  2. Presenter lifecycle
  3. Routing updates

Routing state updates

Map routing parameters into presenter fields with annotations. Fields are set before activation and reveal, then refreshed whenever the token changes while the presenter is active.

			@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;
}

		

Flow

  • Fields populate before onActivated() → use them to load data.
  • setRoutingState(...) refreshes fields and calls onStateChanged() if active.
  • Use onStateChanged() or @OnStateChanged methods to respond without reactivation.

We are a group of passionate people who love what we do

Donate & Support Us