sindresorhus / electron-store

Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc
MIT License
4.57k stars 148 forks source link

Property setMaxListeners does not exist on store. #273

Open sulay-tw opened 5 months ago

sulay-tw commented 5 months ago

I want to update the maximum listeners count as I have more than 10 listeners added to the store.

I get following warning, which I want to suppress:

(node:33123) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added to [EventEmitter]. Use emitter.setMaxListeners() to increase limit