Skip to content

fix: privatize watch handlers#85

Merged
arnautov-anton merged 1 commit intomainfrom
fix/privatize-watch-handlers
Aug 4, 2025
Merged

fix: privatize watch handlers#85
arnautov-anton merged 1 commit intomainfrom
fix/privatize-watch-handlers

Conversation

@arnautov-anton
Copy link
Contributor

💡 Overview

Forgot to do this in #83 so I'm adding it in a separate PR.

} else {
for (const activeFeed of Object.values(this.activeFeeds)) {
activeFeed.handleWatchStopped();
handleWatchStopped.bind(activeFeed)();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we always need to bind these now, right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do fn.call(instance) instead too.

@arnautov-anton arnautov-anton force-pushed the fix/privatize-watch-handlers branch from 9a1493e to 30205aa Compare August 4, 2025 14:49
@arnautov-anton arnautov-anton merged commit ec8679d into main Aug 4, 2025
2 checks passed
@arnautov-anton arnautov-anton deleted the fix/privatize-watch-handlers branch August 4, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants