Closed mnkcoder closed 11 months ago
Create a reproduction repository please
appreciate the quick response. Let me put together a sample repo for this.
Ok, in the process of creating a sample repo I ended up finding a fix for this. I added and changed below webpack sections into my existing setup:
added this
var hotMiddlewareScript = 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=500&reload=true';
and changed my entry points code to this
entry: {
"home-app": [ "./src/client/apps/home-app/App.tsx", hotMiddlewareScript ],
"sign-up-app": [ "./src/client/apps/sign-up-app/App.tsx", hotMiddlewareScript ],
"sign-in-app": [ "./src/client/apps/sign-in-app/App.tsx", hotMiddlewareScript ]
}
Please let me know if I am doing anything unusual with this change.
Expected Behavior
Link navigations should just work.
Actual Behavior
After a handful (5 or more) of navigation clicks, I am noticing that the requests are staying pending for a while, see below for a sample request header.
Noticed that this behavior is occurring only when I am running in Chrome, all other browsers are working just fine. Also, I don't have many tabs open and aware that there are some server connection limits. This issue is occuring consistently
Code
Here is my webpack config
How Do We Reproduce?