fix race condition on startup
This commit is contained in:
parent
386b3ad1cf
commit
6e47594a91
3 changed files with 74 additions and 68 deletions
|
|
@ -7,7 +7,7 @@ class MultiProviderController(final IList<AsyncNotifierProvider> providers)
|
|||
extends AsyncNotifier<void> {
|
||||
@override
|
||||
Future<void> build() => .wait(
|
||||
providers.map((provider) => ref.read(provider.future)),
|
||||
providers.map((provider) => ref.watch(provider.future)),
|
||||
eagerError: true,
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue