bizz84 / tmdb_movie_app_riverpod

Flutter Movies app with Riverpod (TMDB API)

Home Page:https://codewithandrea.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generated Riverpod autodispose With Chrome Target

montanajava opened this issue · comments

I am fairly sure that this is a @riverpod issue, not one with your app, but reporting it nonetheless in the hope that you could verify that this is the case.

When setting Chrome as the target, you find immediately on application launch:

Invalid argument: Maximum call stack size exceeded.

In the stack trace, autodispose seems to be the culprit


══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following JSRangeError was thrown building:
Invalid argument: Maximum call stack size exceeded
When the exception was thrown, this was the stack:
packages/riverpod/src/framework/auto_dispose.dart 7:24                                                    <computed>
packages/riverpod/src/future_provider/base.dart 52:56                                                     __
packages/riverpod/src/future_provider/auto_dispose.dart 41:7                                              __
packages/riverpod/src/future_provider/auto_dispose.dart 33:45                                             createElement
packages/riverpod/src/framework/container.dart 49:32                                                      [_create]
packages/riverpod/src/framework/container.dart 41:52                                                      getElement
packages/riverpod/src/framework/container.dart 455:39                                                     <fn>

Thanks for taking a look.

I see that web is not supported by riverpod_generator. closing my own issue.