You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using GoRouter, using refreshListenable: ref.watch(userStateProvider), must be a Listenableobject.
Using Firebase auth, as a demo, the userStateProvider will look something like this:
With codegen, an info is showing: Generated providers should only depend on other generated providers. Failing to do so may break rules such as "provider_dependencies".dart(avoid_manual_providers_as_generated_provider_dependency)
How should the 'userStateProvider' be generated to use with GoRouter's refreshListenable field?
Describe why existing examples/articles do not cover this case
There is no example of using GoRouter with the use of the refreshListenable field with the codegen provider.
Additional context
Add any other context or screenshots about the documentation request here.
The text was updated successfully, but these errors were encountered:
Using GoRouter, using
refreshListenable: ref.watch(userStateProvider),
must be aListenable
object.Using Firebase auth, as a demo, the userStateProvider will look something like this:
GoRouter
With codegen, an
info
is showing:Generated providers should only depend on other generated providers. Failing to do so may break rules such as "provider_dependencies".dart(avoid_manual_providers_as_generated_provider_dependency)
How should the 'userStateProvider' be generated to use with GoRouter's
refreshListenable
field?Describe why existing examples/articles do not cover this case
There is no example of using GoRouter with the use of the
refreshListenable
field with the codegen provider.Additional context
Add any other context or screenshots about the documentation request here.
The text was updated successfully, but these errors were encountered: