adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

Issue with Webpack 'Hot' Reload

Open yh54321 opened this issue 4 years ago • 2 comments

I am using adm-zip in Express.js middleware serving a React application (created with create-react-app). A request from a client triggers the extractAllTo method server-side. This action strangely causes an unwanted page refresh for the client. I suspect it may be due to the server-side file system contents being altered by the extractAllTo action, which is causing a page refresh through the Webpack 'hot' reload module. I noticed this in development, not sure if it will also take place in production (probably not).

Any advice regarding how to prevent this reload from happening is appreciated

yh54321 avatar Apr 28 '20 17:04 yh54321

With the default config of create-react-app, the hot-reload is only activated in development. Are you sure that the problem comes from here?

Arkellys avatar May 03 '20 08:05 Arkellys

With the default config of create-react-app, the hot-reload is only activated in development. Are you sure that the problem comes from here?

I said I only notice the problem in development. Yes I believe the problem comes from there.

yh54321 avatar May 03 '20 10:05 yh54321