LearnNewsExamplesServices
Frontmatter
id6573
titleUse once: true for related listeners
stateClosed
labels
enhancement
assignees[]
createdAtMar 12, 2025, 12:24 PM
updatedAtMar 12, 2025, 12:24 PM
githubUrlhttps://github.com/neomjs/neo/issues/6573
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 12, 2025, 12:24 PM

Use once: true for related listeners

Closed v8.32.0 enhancement
tobiu
tobiu commented on Mar 12, 2025, 12:24 PM
  • Housekeeping effort: there are still a couple of spots left, where we store the listenerId into a variable and are manually removing the listener when the callback triggers
  • While this does work fine, the logic gets easier to read using {once: true}
tobiu added the enhancement label on Mar 12, 2025, 12:24 PM
tobiu referenced in commit 9f1dc24 - "Use once: true for related listeners #6573" on Mar 12, 2025, 12:24 PM
tobiu closed this issue on Mar 12, 2025, 12:24 PM