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

fix(client): Reintroduce global emitter #1192

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

msfstef
Copy link
Contributor

@msfstef msfstef commented Apr 24, 2024

See #1191 for description of issues that arose from removing the global emitter.

I'm opening this PR in the case we decide that we want to reintroduce it as it ensures that all instantiated electric clients will share notifications between them.

@samwillis
Copy link
Contributor

I would lean towards this revert rather than a larger change at this time. When we add multi-tab support the event miter architecture is going to change.

@msfstef msfstef marked this pull request as ready for review April 25, 2024 08:20
@msfstef
Copy link
Contributor Author

msfstef commented Apr 25, 2024

@samwillis I think I agree since we plan on overhauling it soon then might as well keep this global - ultimately the issues arise from the fact that we use a global registry as well, the handling of multiple electrifications and disposing of resources needs a bit more care.

@msfstef msfstef merged commit dd5bd65 into main Apr 25, 2024
8 checks passed
@msfstef msfstef deleted the msfstef/reintroduce-global-emitter branch April 25, 2024 14:14
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.

None yet

3 participants