Exception for good old Provider
from the "generated providers should only depend on other generated providers" rule
#3166
GokulDas027
started this conversation in
General
Replies: 1 comment
-
That's unlikely to be realistic. There are technical reasons why it works only with the code-generator. And the non-codegenerator syntax is bound to disappear in a distant future |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had been using the basic
Provider
for dependency injection, which is simple, straight forward and generators would be an overkill.Now, on calling the provider from a generated provider, riverpod_lint is saying
How will the future be for the manually declared
provider
in v3 or forward, considering it is the simplest and basic provider, could be kept as it is and excepted from the generated provider only rule.I've read here from @rrousselGit (about StateProvider), the rule is mainly intented as riverpod is heading the metaprogramming direction further, or is there any runtime issues on for generated code depending on manually declared providers.
Request to keep Provider as such and exception from the rule.
Beta Was this translation helpful? Give feedback.
All reactions