riverpod_mutations_annotation 2.0.0-dev.0 copy "riverpod_mutations_annotation: ^2.0.0-dev.0" to clipboard
riverpod_mutations_annotation: ^2.0.0-dev.0 copied to clipboard

The annotation for riverpod_mutations_generator

Riverpod Mutations Annotation #

2.0.0-dev.0 #

Replaced the 4 mutation types with Mut with MutIdle, MutError, and MutSuccess. An isLoading field indicates a loading state instead of a separate state.

No distinction between a sync or async mutation

The mutation type is now a record of (Mut<State>, Action extends Function) instead of a generated callable class.

the provider is also much simpler now, no need to know about mut keys or notifier keys, just pass the the provider in, the mutation keys, and the name of the method for equality to take over.

1.0.4 #

Export ProviderListenable

1.0.3 #

Add super-interfaces for mutation classes that have values

  • MutationResult<T>
  • MutationSuccessResult<T>

Remove duplicated code

1.0.2 #

Add super-interfaces for all mutation classes to inherit

  • AsyncMutation: MutationIdle, MutationSuccess, MutationFailure, MutationLoading
  • SyncMutation: MutationIdle, MutationSuccess, MutationFailure

1.0.2-dev.2 #

Removed MutationBase

  • Really should just make extensions on AsyncMutation or SyncMutation directly, as an isLoading extension has no use on a SyncMutation which does not have a loading state

1.0.2-dev.1 #

Unseal AsyncMutation and SyncMutation

1.0.2-dev #

Added super-interfaces for all mutation classes to inherit

1.0.1 #

Drop meta dependency version to allow for use with the current release of flutter

1.0.0 #

Initial version.

1
likes
0
points
167
downloads

Publisher

verified publisheroaka.xyz

Weekly Downloads

The annotation for riverpod_mutations_generator

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, meta, riverpod, riverpod_annotation

More

Packages that depend on riverpod_mutations_annotation