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 error when requestIdleCallback is unsupported #14

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

cyreb7
Copy link
Contributor

@cyreb7 cyreb7 commented Mar 19, 2024

We just started using Main Thread Scheduling and were surprised to find it throwing errors on iOS (it still functions correctly, but no reason to unnecessarily fill the error logs):

Can't find variable: cancelIdleCallback

It turns out the RicTracker@start() function returns if requestIdleCallback is unsupported, but RicTracker@stop() doesn't.

@astoilkov astoilkov merged commit 3b99485 into astoilkov:main Mar 20, 2024
2 checks passed
@astoilkov
Copy link
Owner

It seems I've missed that after the library rewrite. Thanks for your contribution! I just published a new patch release.

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