Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Érik Lima <114886335+eriklimakc@users.noreply.github.com>
  • Loading branch information
2 people authored and agneszitte committed Sep 26, 2024
1 parent 7d6a01d commit d5c14d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Learn/Mvux/Advanced/Messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ These extension methods are available for both `IState<TEntity>` and `IListState
- `IState<TEntity> Observe<TEntity, TKey>(this IState<TEntity> state, IMessenger messenger, Func<TEntity, TKey> keySelector, out IDisposable disposable)`
This overload is the same as the previous one, except it returns an `IDisposable` that can be used to dispose of the subscription. When disposed, it will stop the state from observing further entity-change messages from the messenger.
This overload is the same as the previous one, except it returns an `IDisposable`, which can be used to dispose of the subscription. When disposed, the state will stop observing further entity-change messages from the messenger.
```csharp
public partial record MyModel
Expand All @@ -370,7 +370,7 @@ These extension methods are available for both `IState<TEntity>` and `IListState
}
```
Two more overload extensions are available for `IListState<TEntity>` and they behave the same as the `IState<TEntity>` overloads.
Two more overload extensions are available for `IListState<TEntity>`, and they behave the same as the `IState<TEntity>` overloads.
- `IListState<TEntity> Observe<TEntity, TKey>(this IListState<TEntity> listState, IMessenger messenger, Func<TEntity, TKey> keySelector, out IDisposable disposable)`
Expand Down

0 comments on commit d5c14d8

Please sign in to comment.