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.

			@PathParameter("id") String id;
@QueryParameter("filter") String filter;

@Override
protected void onActivated() {
  view.load(id, filter);
}

@Override
protected void onStateChanged() {
  view.load(id, filter);
}

		

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