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

[v3.0.0-beta.3] (Safari) ReferenceError: Can't find variable: requestIdleCallback #87

Open
gregjoeval opened this issue Mar 30, 2022 · 1 comment

Comments

@gregjoeval
Copy link

gregjoeval commented Mar 30, 2022

Description:

Safari doesn't officially support the requestIdleCallback api yet (can be enabled via experimental WebKit features).
The requestIdleCallback api is still under consideration by WebKit.

Example:

image

Work Around:

polyfill the requestIdleCallback api
requestidlecallback-polyfill
aFarkas/requestIdleCallback

Environment:

"react-vtree": "^3.0.0-beta.3",
Safari Version 15.3 (17612.4.9.1.8)

@gregjoeval
Copy link
Author

The ReadMe states that the requestIdleCallback api will only be used for browser that support it, but that seems to not be the case. I provided a work around for anyone that runs into this, but it seems like something that should be addressed. I don't mind working a changeset to fix this behavior, unless the maintainers of this project have a different idea for how to resolve this issue.

@gregjoeval gregjoeval changed the title ReferenceError: Can't find variable: requestIdleCallback (Safari) (v3.0.0-beta.3) ReferenceError: Can't find variable: requestIdleCallback (Safari) Mar 30, 2022
@gregjoeval gregjoeval changed the title (v3.0.0-beta.3) ReferenceError: Can't find variable: requestIdleCallback (Safari) [v3.0.0-beta.3] (Safari) ReferenceError: Can't find variable: requestIdleCallback Mar 30, 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

No branches or pull requests

1 participant