Skip to content

Commit

Permalink
Fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Jan 8, 2025
1 parent 952f974 commit 30b9eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/riverpod/lib/src/core/ref.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ final <yourProvider> = Provider(dependencies: [<dependency>]);
void _throwIfInvalidUsage() {
assert(
!_debugIsRunningSelector,
'Cannot call ref.listen inside a selector',
'Cannot call ref.<methods> inside a selector',
);
if (!mounted) throw UnmountedRefException(_element.origin);
}
Expand Down

0 comments on commit 30b9eb8

Please sign in to comment.