devhome icon indicating copy to clipboard operation
devhome copied to clipboard

MVVM Toolkit improvements

Open Sergio0694 opened this issue 2 years ago • 0 comments

Suggested new feature or improvement

As discussed at the Dev Home booth at Build, there's a few log hanging fruits with the MVVM Toolkit here:

  • [ ] Updating to 8.2
  • [ ] Switching types from ObservableRecipient to ObservableObject
  • [ ] Switching some obvious properties/commands to source generators

For (1), the main advantages of this updates are:

  • The source generators are massively faster and more efficient
  • There's new analyzers to help detect bugs
  • There's new features that can be used in the future

The full changelog for the two releases are here:

For (2) and (3), mostly:

  • If messaging features aren't used (which is the case here), using ObservableRecipient is just wasteful.
  • For those properties/commands, using the source generators just makes the code less verbose and error prone.

Sergio0694 avatar May 25 '23 07:05 Sergio0694