Skip to content

Commit

Permalink
docs: fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam authored and nickrandolph committed Mar 15, 2024
1 parent 6d0ed8b commit 5a33c2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Learn/Mvux/ListFeeds.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ uid: Uno.Extensions.Mvux.ListFeeds

A list-feed (`IListFeed`) is like a [feed](xref:Uno.Extensions.Mvux.Feeds) which is stateless and keeps no track of changes, but is specialized for handling collections.

Unlike a feed, where each asynchronous operation, returns one single item (or a series of single items in the case of an `IAsyncEnumerable`), a list-feed returns a collection of items.
Unlike a feed, where each asynchronous operation, returns one single item (or a series of single items in the case of an `IAsyncEnumerable`), a list-feed returns a collection of items.

A couple of points to note about list-feeds:

- [Operators](#operators) are applied to the items within the returned collection, rather than on the entire collection.

- When an empty collection is returned by the service, it's treated as an Empty message. The returned data axis Option will be `None`, even though the result was not `null`.
- When an empty collection is returned by the service, it's treated as an Empty message. The returned data axis Option will be `None`, even though the result was not `null`.
This is because when a control of data items is displayed with an empty collection (for instance a `ListView`), there is no reason to display the `FeedView`'s `ValueTemplate` with an empty `ListView`. The "No data records" `NoneTemplate` makes much more sense in this case. For that reason, both a `null` result and an empty collection are regarded as `None`.

- The list-feed is uses the _key equality_ to track multiple versions of the same entity within different messages of the list-feed.
Expand Down Expand Up @@ -81,7 +81,7 @@ As mentioned, unlike a `Feed<List<T>>` operators on a list-feed are directly int

### Where

This operator allows the filtering of the items.
This operator allows the filtering of the items.

```csharp
public IListFeed<string> LongNames => Names.Where(name => name.Length >= 10);
Expand Down

0 comments on commit 5a33c2a

Please sign in to comment.