Skip to content

Commit

Permalink
Merge pull request #3674 from creativecreatorormaybenot/patch-1
Browse files Browse the repository at this point in the history
Fix typo in docs
  • Loading branch information
rrousselGit authored Jul 25, 2024
2 parents 0e25d9b + 7d4a93b commit 7e2a65a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/essentials/side_effects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ For example, we can disable "auto-dispose" (which we will see later) by writing

When a `@riverpod` annotation is placed on a class, that class is called
a "Notifier".
The class must extend `_$NotifierName`, where `NotifierName` is class name.
The class must extend `_$NotifierName`, where `NotifierName` is the class name.

Notifiers are responsible for exposing ways to modify the state of the provider.
Public methods on this class are accessible to consumers using `ref.read(yourProvider.notifier).yourMethod()`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ For example, we can disable "auto-dispose" (which we will see later) by writing
<!---
When a `@riverpod` annotation is placed on a class, that class is called
a "Notifier".
The class must extend `_$NotifierName`, where `NotifierName` is class name.
The class must extend `_$NotifierName`, where `NotifierName` is the class name.
-->
当 `@riverpod` 注解被放置在一个类上时,该类被称为“通知者程序”。
类必须扩展 `_$NotifierName` ,其中 `NotifierName` 是类名。
Expand Down

0 comments on commit 7e2a65a

Please sign in to comment.