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

LiveNow: Fixes activation/deactivation issue and logic error with getTimeRange #641

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

kaydelaney
Copy link
Contributor

No description provided.

@kaydelaney kaydelaney added the type/bug Something isn't working label Mar 13, 2024
@kaydelaney kaydelaney self-assigned this Mar 13, 2024
}
}, LiveNowTimer.REFRESH_RATE);
}
window.clearInterval(this.timerId);
Copy link
Member

Choose a reason for hiding this comment

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

why window.clearInterval here, does not clearInterval work the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just a typing thing. clearInterval on its own has NodeJS types
image

whereas window.clearInterval doesn't:
image

window.clearInterval(this.timerId);
this.timerId = undefined;
this.enabled = true;
this.timerId = window.setInterval(() => {
Copy link
Member

Choose a reason for hiding this comment

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

same ehre, why window.setInterval

@kaydelaney kaydelaney merged commit dc068dd into main Mar 13, 2024
3 checks passed
@kaydelaney kaydelaney deleted the fix-live-now-again branch March 13, 2024 14:54
@grafanabot
Copy link
Contributor

🚀 PR was released in v3.13.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released type/bug Something isn't working
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants