-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): Remove global emitter for
EventNotifier
and remove max…
… listener warning (#1163) Addresses #868 Initially I just removed the max listener limit as the way we use it any limit we set is going to be arbitrary and just an annoyance to real use cases (like Kyle's). Afterwards I figured it would also be pretty simple to remove the global singleton emitter pattern altogether as it wasn't quite clear why it was there, since we only ever instantiate one `EventNotifier` when we electrify and that electric instance is meant to be shared across the application instance. Unless we have a particular reason for using a singleton I think removing it is less likely to cause issues in the future (and help with the work on being able to completely "clean up" electric resources)
- Loading branch information
Showing
3 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"electric-sql": patch | ||
--- | ||
|
||
Remove global `EventEmitter` and remove max listener warning. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters