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

Enable Vite's waitForRequestsIdle() for client requests only #13394

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

thecrypticace
Copy link
Contributor

The waitForRequestsIdle() API should not be called when doing SSR as it was not designed to be used then. The API is also slightly misnamed and will be deprecated and have a more appropriate name and place in Vite 5.3 to make this more clear. Vite's own logic skips some of the steps during SSR but we did not which is why using this API with Remix resulted in pages not loading.

@thecrypticace thecrypticace changed the title Enable waitForRequestsIdle but only when not doing SSR Enable Vite's waitForRequestsIdle() for client requests only Mar 28, 2024
@adamwathan adamwathan merged commit 500372e into next Mar 29, 2024
1 check passed
@adamwathan adamwathan deleted the fix/vite-wait-ssr branch March 29, 2024 02:57
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.

None yet

2 participants