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

Fix: clear pending scrollTracker's timeout when the instance is destroyed #339

Closed
wants to merge 1 commit into from

Conversation

sqal
Copy link

@sqal sqal commented Sep 14, 2019

Fixes #338

@WickyNilliams
Copy link
Owner

@sqal thanks for this. I can't imagine you saw it, but I mentioned in a recent PR that I was thinking of dropping this async behaviour completely: #330 (comment). This would simplify the code and flow of execution, and also avoid the kind of bug you've spotted here.

So with that in mind, I wonder whether it's worth just dropping setTimeout rather than fixing it up as you have done here.

@hacknug did you start on this by any chance?

@hacknug
Copy link
Collaborator

hacknug commented Sep 16, 2019

@WickyNilliams not yet, got caught up with client work 🥴

@WickyNilliams
Copy link
Owner

WickyNilliams commented Sep 16, 2019

No worries! Just wanted to be sure there wasn't any duplication of effort. I think I'll do this today, unless you're particularly keen on it? I don't mind waiting if so.

Edit: I just went ahead and did it. @hacknug, do i remember rightly, you have access to an iOS device? If so, it'd be great if you could look at the various iOS bugs

@hacknug
Copy link
Collaborator

hacknug commented Sep 16, 2019

Go ahead. I'm in between projects and I'm not sure how much time I'll have to put in oss this week. Sorry!

@WickyNilliams
Copy link
Owner

Not a problem. As I'm sure you're aware, my participation in OSS is inconsistent and infrequent (to say the least haha), there's no expectation of any more than that :)

@sqal
Copy link
Author

sqal commented Sep 16, 2019

@WickyNilliams No, I hadn't seen your comment in the other PR before I opened mine. I guess we can close this PR now that you've done refactoring and this bug should be fixed? :)

@WickyNilliams
Copy link
Owner

@sqal yes, this can be closed now as i've just merged the PR removing the async behaviour.

Thanks for highlighting this issue anyway, I really appreciate you taking the time to contribute :)

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.

Uncaught TypeError: Cannot read property 'destroy' of undefined
3 participants