mutekt

Simplify mutating "immutable" state models (a Kotlin multiplatform library)

APACHE-2.0 License

Stars
253

Bot releases are hidden (Show)

mutekt - v1.0.0-alpha03

Published by PatilShreyas about 2 years ago

What's Changed

  • [#9] Added support for updating multiple state fields atomically with Mutekt-generated mutable model. Just use update{} on the instance of mutable model.

Example:

val state = MutableNotesState(...)

state.update {
  isLoading = false
  notes = listOf("Lorem Ipsum")
}

Full Changelog: https://github.com/PatilShreyas/mutekt/compare/v1.0.0-alpha02...v1.0.0-alpha03