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

Increase 'max listeners'. #425

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Increase 'max listeners'. #425

merged 1 commit into from
Mar 14, 2022

Conversation

evert
Copy link
Collaborator

@evert evert commented Mar 14, 2022

When Ketting is used in the frontend, we want to encourage it being used as a store for central state. If a piece of data is used in different places, this will usually result in events being registered.

The default of 10 is quite low, and standard applications often start emitting tons of annoying warnings for 'max listeners'. This is annoying and creates distrust. Having a lot of listeners on a single EventEmitter can be indicative of a memory leak, but having lots of listeners itself is not cause for concern.

This PR increases it to 500 for the Resource object. This is plenty of room.

When Ketting is used in the frontend, we want to encourage it being used
as a store for central state. If a piece of data is used in different
places, this will usually result in events being registered.

The default of 10 is quite low, and standard applications often start
emitting warnings for 'max listeners'.

This PR increases it to 500 for the Resource object. This is plenty of
room.
@evert evert requested review from mhum and BeckyPollard March 14, 2022 03:12
@evert evert self-assigned this Mar 14, 2022
@merrickread
Copy link
Collaborator

hurray! This warning is v annoying

@evert evert merged commit 5380921 into main Mar 14, 2022
@evert evert deleted the inc-max-listeners branch March 14, 2022 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants