Skip to content
Discussion options

You must be logged in to vote
  • Use AsyncNotifier for simple data-fetching or one-shot async state.
  • Use StateNotifier for more complex or layered state that needs both async and sync control.
  • Sometimes even combine them an AsyncNotifier for fetching data, and a StateNotifier for UI interactions based on that data.
    There's no strict rule, its more about keeping your logic clear and maintainable

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raw-dogging
Comment options

Answer selected by raw-dogging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Discussions around programming languages, open source and software development
2 participants