Skip to content

feat(hmr): add server.hmr.retry option to solve frequent refresh caused by HMR WebSocket connection loss (#6089)#6090

Closed
zhengjiaqi wants to merge 1 commit intovitejs:mainfrom
zhengjiaqi:main
Closed

feat(hmr): add server.hmr.retry option to solve frequent refresh caused by HMR WebSocket connection loss (#6089)#6090
zhengjiaqi wants to merge 1 commit intovitejs:mainfrom
zhengjiaqi:main

Conversation

@zhengjiaqi
Copy link

@zhengjiaqi zhengjiaqi commented Dec 13, 2021

Description

feat(hmr): add server.hmr.retry option to solve frequent refresh caused by HMR WebSocket connection loss (#6089)

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@ygj6
Copy link
Member

ygj6 commented Dec 30, 2021

Other related issues #5228 #5675

@bluwy

This comment has been minimized.

@bluwy bluwy added the p2-to-be-discussed Enhancement under consideration (priority) label Mar 29, 2022
@olivierchatry
Copy link

Would be really great to have that.

@patak-cat patak-cat added p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) and removed p2-to-be-discussed Enhancement under consideration (priority) labels Jul 8, 2022
@benmccann
Copy link
Collaborator

@zhengjiaqi thanks for this PR. It's accumulated some merge conflicts. Would you be able to rebase it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat: hmr p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority)

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add server.hmr.retry to solve frequent refresh caused by HMR WebSocket connection loss Vite tries to reconnect to websocket every second

7 participants