Skip to content

fix(preview): dev server started event timing #9670

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

Merged
merged 4 commits into from
Apr 10, 2025

Conversation

luvkapur
Copy link
Member

@luvkapur luvkapur commented Apr 10, 2025

This PR fixes the timing of the DevServerStarted event fired by the Preview Start Plugin to align exactly when the dev server is ready for preview. Previously, this was fired when the Component Server was spun up but that led to a slight delay between when we stop the loading spinner because of the event and when actually the preview is available by the dev server. With this change, we now listen to Webpack's CompilationDone event after we spin up the dev server - which results in perfect alignment to when the preview is ready to be rendered.

dev.server.timing.mp4

@luvkapur luvkapur enabled auto-merge (squash) April 10, 2025 19:22
@luvkapur luvkapur merged commit b7c98c4 into master Apr 10, 2025
10 checks passed
@luvkapur luvkapur deleted the dev-server-event-timing-fix branch April 10, 2025 20:12
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