Edit: This is a dart web compiler bug, only for the debug web compiler, you can get around it by developing on desktop and testing / deploying a release build on web.
Upvote this issue: dart-lang/sdk#50119
Describe the bug
Getting this error for Flutter web with Riverpod version 2.0:
Invalid argument: Maximum call stack size exceeded
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ #0 packages/riverpod/src/framework/auto_dispose.dart 7:24 <computed>
│ #1 packages/riverpod/src/provider/base.dart 259:27 __
│ #2 packages/riverpod/src/provider/auto_dispose.dart 34:7
Version 1.0.3 worked fine on web, but using version 2.0 seems to be giving me this error.
No issues found on Android/iOS. Just web so far.
To Reproduce
I am not really sure how to reproduce this for the provider file is quite lengthy. I am actively looking for the source but thought I should post this for the time being.
Edit: This is a dart web compiler bug, only for the debug web compiler, you can get around it by developing on desktop and testing / deploying a release build on web.
Upvote this issue: dart-lang/sdk#50119
Describe the bug
Getting this error for Flutter web with Riverpod version 2.0:
Version 1.0.3 worked fine on web, but using version 2.0 seems to be giving me this error.
No issues found on Android/iOS. Just web so far.
To Reproduce
I am not really sure how to reproduce this for the provider file is quite lengthy. I am actively looking for the source but thought I should post this for the time being.