Replies: 1 comment 1 reply
-
Because in reality, when an "add todo" operation fails, you don't want the entire todo list view to behave as if it failed to obtain the list of todos. You only want to show a snackbar or show the submit button in red. Not the whole page as error. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just been browsing some parts of the new documentation and noticed that there is a new TODO list example using an AsyncNotifier in it. For some reason however this example does not use the static
AsyncValue.guard
method like the old example did. Is there any particular reason for this?Furthermore the old example is marked as outdated...? What exactly does this concern?
New example in the side effects documentation
Old example in the NotifierProvider documentation
Beta Was this translation helpful? Give feedback.
All reactions