Recipes

Commit and transform Repository data

Replace current data or perform one synchronous transformation while preserving publication order.

v0.1.0-dev.1Intermediateark_data_layer

Commit and transform Repository data

Use setData(next) after mapping an external result. Use updateData when the next value is a synchronous function of current data:

dart
void markSelected(String id) {
  updateData((current) => current.select(id));
}

Do not place an await inside the transformation. Read–await–write is a concurrent operation and needs an explicit policy. Every successful call publishes, including an equal value.

ARKTELOS

Purpose-built engineering systems for software that has to hold.