adm-zip
adm-zip copied to clipboard
Issue with Webpack 'Hot' Reload
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
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?
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.