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
This would enhance developer experience where we have a model class SizeInfo, and we want a provider called sizeInfoProvider, but that would require a naming conflict between the model and the provider class to get the desired name when using code gen:
// naming conflict
@riverpod
class SizeInfo extends _$SizeInfo{}
So we might declare the provider as this to avoid the naming conflict with the model and get the provider name that we want:
@Riverpod(name: 'sizeInfoProvider') // or omit 'Provider' and automatically add it to every provider name.
class SizeInfoNotifier extends _$SizeInfoNotifier{}
The text was updated successfully, but these errors were encountered:
This would enhance developer experience where we have a model class
SizeInfo
, and we want a provider calledsizeInfoProvider
, but that would require a naming conflict between the model and the provider class to get the desired name when using code gen:So we might declare the provider as this to avoid the naming conflict with the model and get the provider name that we want:
The text was updated successfully, but these errors were encountered: