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
Describe the bug
riverpod_lint is complaining for notifiers that are of their own type, useful when you want to migrate a changenotifier to not
have a separate state instance. This causes ThisProvider build() => this; to be linted, even though everything works.
RandalSchwartz
changed the title
support ThisNotifier build() => this in generated code
do not lint on ThisNotifier build() => this in generated code
Mar 11, 2023
It's the easiest thing possible when porting over a ChangeNotifier to the new framework. There's no specific State type object to work with, and using the Notifier itself shortens the mutate methods. If there's a way to accomplish those easier, I'm listening...
Describe the bug
riverpod_lint is complaining for notifiers that are of their own type, useful when you want to migrate a changenotifier to not
have a separate state instance. This causes
ThisProvider build() => this;
to be linted, even though everything works.To Reproduce
and of course the proper imports and build structure.
Expected behavior
The RubberDuck type, a derived class of Notifier, would be accepted and supported as the return type.
The text was updated successfully, but these errors were encountered: