Skip to content

clear pulse interval when changing from visible to not visible - #24

Open
carlosalmonte04 wants to merge 1 commit into
gnestor:masterfrom
carlosalmonte04:master
Open

clear pulse interval when changing from visible to not visible#24
carlosalmonte04 wants to merge 1 commit into
gnestor:masterfrom
carlosalmonte04:master

Conversation

@carlosalmonte04

Copy link
Copy Markdown

Otherwise interval continues animating on native thread.

Visible by activating MessageQueue.spy (MessageQueue.spy(true))

@gnestor

gnestor commented Jun 22, 2019

Copy link
Copy Markdown
Owner

Thanks @carlosalmonte04 for catching this. I'm so sorry I'm just seeing this now! I haven't done any React Native development for the past few years and I didn't receive an email notification from Github about this ☹️ I will review now...

Comment thread index.js
}
}, PULSE_DURATION);
} else {
if (this.timer) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Should this also be this.handleClearInterval()?

Comment thread index.js
@@ -1,5 +1,5 @@
import React, { Component } from 'react';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you revise this commit so that the only changes are the ones related to clearing the interval and not formatting?

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