From ae546e0c7cbc27d3c8b93a67466da5c6e0d1aaee Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot Date: Wed, 24 Jul 2024 18:30:44 +0200 Subject: [PATCH 1/2] Update side_effects.mdx --- website/docs/essentials/side_effects.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/essentials/side_effects.mdx b/website/docs/essentials/side_effects.mdx index 3639eb3e8..c6834b230 100644 --- a/website/docs/essentials/side_effects.mdx +++ b/website/docs/essentials/side_effects.mdx @@ -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()`. From 7d4a93be8a15a50d44890f54f296c6df3754786e Mon Sep 17 00:00:00 2001 From: creativecreatorormaybenot Date: Wed, 24 Jul 2024 18:31:34 +0200 Subject: [PATCH 2/2] Update side_effects.mdx --- .../current/essentials/side_effects.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/essentials/side_effects.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/essentials/side_effects.mdx index c4a658e44..c311c2c30 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/essentials/side_effects.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/essentials/side_effects.mdx @@ -330,7 +330,7 @@ For example, we can disable "auto-dispose" (which we will see later) by writing 当 `@riverpod` 注解被放置在一个类上时,该类被称为“通知者程序”。 类必须扩展 `_$NotifierName` ,其中 `NotifierName` 是类名。