Replies: 5 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Updated |
Beta Was this translation helpful? Give feedback.
-
I'm only have one container used in one test. I don't see the problem. Maybe you mean to create inside the main. Updating it |
Beta Was this translation helpful? Give feedback.
-
I must call it
This resolved this problem, don't know why because I have still only one void main(List<String> arguments) async {
final cRef = ProviderContainer();
await test(cRef);
} Output:
|
Beta Was this translation helpful? Give feedback.
-
Thank you @rrousselGit. Testing in Dart (no Flutter) make me realise that your proposed design on Discord works okay. I must missing some active listeners on my Flutter code. Anyways it would be a help for me any mechanism to debug a provider active listeners (not just the number). Maybe a |
Beta Was this translation helpful? Give feedback.
-
Scenario: I have three providers:
masterProvider
,slaveOneProvider
andslaveTwoProvider
.masterProvider
has no state (null state). Its only purpose is to invalidate slave providers.Both slave providers execute
ref.watch(master)
onbuild()
.Before going to my main goal I encountered other problems that I must resolve first.
This are my testing files:
This is the execution output:
Problems:
test 2
andtest 3
, invalidatingmasterProvider
is not followed by bothslaveProviders
invalidation/re-evaluation1)
, intest 4
we get the oldslaveProviders
valuesThank you in advance
Beta Was this translation helpful? Give feedback.
All reactions