'autoDispose' forces itself upon all providers combining with an autoDispose provider? #567
Answered
by
rrousselGit
wujek-srujek
asked this question in
Q&A
-
I have a final timerStatusProvider =
Provider.family<TimerStatus, Duration>(
(ref, interval) => ref.watch(timerNotifierProvider(interval)).status,
); This fails to compile with:
After some time I tried adding the
|
Beta Was this translation helpful? Give feedback.
Answered by
rrousselGit
Jul 2, 2021
Replies: 1 comment 5 replies
-
There is an explanation in the doc: |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
wujek-srujek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an explanation in the doc:
https://riverpod.dev/docs/concepts/modifiers/auto_dispose#the-argument-type-autodisposeprovider-cant-be-assigned-to-the-parameter-type-alwaysaliveproviderbase