// ignore_for_file: unused_local_variable import 'package:riverpod_annotation/riverpod_annotation.dart'; part 'codegen.g.dart'; final otherProvider = Provider((ref) => 0); /* SNIPPET START */ @riverpod class MyNotifier extends _$MyNotifier { @override int build() { // Bad! Do not use "ref" here as it is not reactive ref.read(otherProvider); return 0; } void increment() { ref.read(otherProvider); // Using "read" here is fine } }