After some sleep: maybe this would be the anti-pattern?
(callback) => ipcRenderer.on('update-counter', callback)