Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to clear errors? #14

Open
vaudevillen opened this issue Jul 30, 2020 · 1 comment
Open

Ability to clear errors? #14

vaudevillen opened this issue Jul 30, 2020 · 1 comment

Comments

@vaudevillen
Copy link
Collaborator

Because eachError is backed by a ConflatedBroadcastChannel, it'll replay errors, but I might not be concerned with any previous error values. It would be nice if we could either clear the error, or have this work like a flow and "drop" the first error. Also, this seems related to issue #13, and could be solved by adding the ability to manually update the error value

@asarazan
Copy link
Owner

From a philosophical standpoint, a system should be considered "in error" for the entire time that it cannot acquire a new value. Therefore the only "true" way to clear an error is to execute a successful fetch.

Right now I'm leaning toward restricting any external control over errors because it might confuse or dilute their meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants