lucavenir / go_router_riverpod

An example on how to use Riverpod + GoRouter
460 stars 68 forks source link

code_gen always ens up on homepage page, ignoring permissions #19

Closed k2s closed 1 year ago

k2s commented 1 year ago

Than you for this great repository.

HomeRoute.redirect() is called, but if (state.location == HomeRoute.path) return null; is always returns. The method _requestMock() is never called.

If I comment if (state.location == HomeRoute.path) return null;, the final userRole = roleListener.read(); will return with null before the _requestMock() method is called.

Could you please fix this?

PS: the permissionsProvider doesn't seam to work also in the complete example

lucavenir commented 1 year ago

Than you for this great repository.

🙏🏼

Could you please fix this?

On it.

PS: the permissionsProvider doesn't seam to work also in the complete example

I'm planning on disbanding the support for non-generated solutions as they'll be obsolete in the near future.