-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
Using the revalidate
method to trigger hot reload can cause service crashes
#2670
Comments
it depends on how its configured if render it attempting to use the port again then it will crash. |
Ill look at the example, its quite old so probbably needs to be redone. |
Is there a detailed or up-to-date example of the revalidate method? |
You want to clear the require cache when hash is different. I can take a look at your repo and see. What are steps to reproduce? Just update remote and refresh and it crashed? |
After both services are started:
|
okay will check it out |
Stale issue message |
Describe the bug
When I use the example React-18-server-2-server for debugging, touching a hot update will cause the service to crash and prompt port
:3000
is occupied. Is my posture incorrect?Error messages 👇:
Reproduction
https://github.com/shixianqin/react-18-server-2-server
Used Package Manager
pnpm
System Info
Validations
The text was updated successfully, but these errors were encountered: