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

feat: Add observable error events in case of failed remote resolve #126

Closed
wants to merge 1 commit into from

Conversation

fabriziodemaria
Copy link
Member

@fabriziodemaria fabriziodemaria commented Mar 14, 2024

Cross-posting the latest OF events/state proposal here, for reference:

Screenshot 2024-03-14 at 15 18 04

The transition introduced in the PR is allowed:

NOT_READY -> initialize() -> ERROR -> READY

I am not particularly fond of adding a short ERROR state before moving to READY, just so we can emit the ERROR event for the user to observe. I wonder if we could add some WARNING or LOG event type in the OF layer, that doesn't cause state transitions but allows to communicate internals to the user.

However, this could be a stop-gap solution for now

@nicklasl nicklasl force-pushed the expose-resolve-errors branch from 2c36f62 to da8a4f4 Compare April 19, 2024 07:26
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

Successfully merging this pull request may close these issues.

2 participants