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: avoid SSR requests in waitForRequestIdle #16246

Merged
merged 2 commits into from Mar 24, 2024

Conversation

patak-dev
Copy link
Member

Description

Fixes #16245

Tested with https://github.com/arxpoetica/inlang-sveltekit-vite-bug

The crawl end finder was only processing client requests before. When we moved to the server, we starting adding both client and SSR requests. The issue appears because the client and SSR requests share the same id space. The feature was added thinking on client requests only (see context at #16135). It should have been named server.waitForClientRequestsIdle(id). This function will probably be moved to be environment specific if we move forward with the Environment API proposal.

Copy link

stackblitz bot commented Mar 23, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev
Copy link
Member Author

/ecosystem-ci run

sapphi-red
sapphi-red previously approved these changes Mar 24, 2024
packages/vite/src/node/server/transformRequest.ts Outdated Show resolved Hide resolved
@sapphi-red sapphi-red added p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) regression The issue only appears after a new release labels Mar 24, 2024
Co-authored-by: 翠 / green <green@sapphi.red>
@patak-dev patak-dev merged commit 7093f77 into main Mar 24, 2024
14 of 15 checks passed
@patak-dev patak-dev deleted the fix/wait-for-requests-idle branch March 24, 2024 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) regression The issue only appears after a new release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#16135 introduced development server bug
2 participants