Skip to content

[MVUX][ListState] Add support for UpdateSelectedItem or non-KeyEquatable<T> types containd in a ListState! #3010

@DevTKSS

Description

@DevTKSS

What would you like to be added:

  1. Provide possibility to Update the Current Selected Item(s) with a UpdateSelectedItem(s)Async(
    1. Also for simple types that do NOT implement IKeyEquatable<T>!!!
    2. Regular record types of course too
  2. Best case would be, if this IKeyEquatable<T> Limitation would not at all be existing for UpdateItemAsync!

Why is this needed:

A Viewer of my MVUX tutorials asked me to do a simple Tutorial for how we can:

  1. Select a Item of a ListState<string>
  2. Update this Item with the new Value

We tryed for about 2-3 hours because this is not possible to be used with a non IKeyEquatable<T> implementing type, like string!

From Consumer Side, it's absolute non-sense to always have to create a dedicated Record Type just to use Mvux or else we seem to be confronted with such errors!

Image

Another reason why we would need this: What if the IKeyEquatable would match more then the ones selected? We would unintentionally update those too.

For which Platform:

  • All Platforms
  • Build tasks

Anything else we need to know?

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementNew feature or request.triage/untriagedIndicates an issue requires triaging or verification.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions