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

[deku-c-toolkit] Expose cancelOnNewState function #989

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Gau-thier
Copy link
Contributor

Depends

Problem

There is no function exposed by the toolkit to cancel the interval of onNewState.
Bump version to 0.1.6

Solution

Add a cancelOnNewState function to clear the interval.

Comment on lines +158 to 160
cancelOnNewState(): void {
if (this.fetchInterval) clearInterval(this.fetchInterval);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a doc to explain what this function does ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Gau-thier Gau-thier marked this pull request as ready for review November 21, 2022 17:21
@Gau-thier Gau-thier changed the title WIP expose cancelOnNewState function Expose cancelOnNewState function Nov 21, 2022
@Gau-thier Gau-thier changed the title Expose cancelOnNewState function [deku-c-toolkit] Expose cancelOnNewState function Nov 21, 2022
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