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(sdk): safari rendering #2642

Merged
merged 1 commit into from
Jan 28, 2025
Merged

fix(sdk): safari rendering #2642

merged 1 commit into from
Jan 28, 2025

Conversation

matheusps
Copy link
Contributor

What's the purpose of this pull request?

  • The fs home is not rendering in Safari.
  • requestIdleCallback is not available in Safari.
  • This PR creates a polyfill for it

@matheusps matheusps added the bug Something isn't working label Jan 28, 2025
@matheusps matheusps self-assigned this Jan 28, 2025
@matheusps matheusps requested a review from a team as a code owner January 28, 2025 17:13
@matheusps matheusps requested review from renatamottam and renatomaurovtex and removed request for a team January 28, 2025 17:13
Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview Jan 28, 2025 5:17pm

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

if (window.requestIdleCallback) {
window.requestIdleCallback(callback)
} else {
window.setTimeout(callback, 1)
Copy link
Member

Choose a reason for hiding this comment

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

rapaz, o que exatamenta essa logica de verificar se esta idle faz?
me assustei uma vez com setTimeout de 1 no SF e agora me daparo com isso de novo kkkk

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

não precisamos de uma solução mais sofisticada conforme o shim do link?

@matheusps matheusps merged commit 39746cd into main Jan 28, 2025
8 checks passed
@matheusps matheusps deleted the fix/safari-ric branch January 28, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants