Error Tried to read provider from a place where one of its dependencies were overridden but the provider is not.
even with specified dependencies
#2429
Labels
bug
Something isn't working
Describe the bug
I have 3 providers:
When overriding
a.overrideWithValue
2 times and with aProviderScope
that gets disposed / re-initiated, it raises the errorTo Reproduce
Run the code snippet (or checkout https://github.com/ValentinVignal/flutter_app_stable/tree/riverpod/override-providers)
Code snippet
Click on the button "Toggle" 3 times to
The sub widget.
The 2nd time the widget is shown, it throws the error:
Logs
final a = Provider(...);
final b = Provider((ref) => ref.watch(a), dependencies: [a]);
Screen.Recording.2023-04-06.at.10.03.23.AM.mov
Expected behavior
I would expect it to not throw any error/fail the assert as the dependencies of
c
are specified.The text was updated successfully, but these errors were encountered: