Skip to content

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.

3 participants