You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// A function that allows you to watch a [Repo] of type [R] managing data of type [S] and
16
+
/// Watches a [Repo] of type `R` managing data of type `S` and
15
17
/// returns a tuple containing the data from the repo and the repo itself.
16
18
///
19
+
/// Example usage:
20
+
/// ```dart
21
+
/// final (counter, counterRepo) = use.repo<int, CounterRepo>();
22
+
/// ```
23
+
///
24
+
/// If the repo does not contain data yet, [UseRepoMixin.onDependenciesReady] is aborted and [UseRepoMixin.onDependenciesLoading] or [UseRepoMixin.onDependencyError] is called instead.
0 commit comments