rrousselGit / state_notifier

ValueNotifier, but outside Flutter and with some extra perks
MIT License
311 stars 28 forks source link

Is it okay to throw exceptions outside of state notifier methods AKA error handling? #61

Closed yevyevyev closed 2 years ago

yevyevyev commented 2 years ago

Describe what scenario you think is uncovered by the existing examples/articles Can the readme be extended with error handling cases? I guess there are two main ways of handling errors - through some kind of AsyncValue for state where state is invalid and throwing exceptions inside methods aka side effect error but state is valid (not sure about the last one though)

rrousselGit commented 2 years ago

It's up to you to decide. There's no final answer to this topic