electron-userland / electron-webpack-quick-start

A bare minimum project structure to get started developing with electron-webpack.
https://webpack.electron.build/
730 stars 258 forks source link

The default value of app.allowRendererProcessReuse is deprecated #89

Closed kiruh closed 3 years ago

kiruh commented 3 years ago

When running yarn dev, electron outputs the following warning into terminal

┏ Electron -------------------

(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check https://github.com/electron/electron/issues/18397

┗ ----------------------------

Any ideas on why it's happening and how to fix it?

timohausmann commented 3 years ago

Setting app.allowRendererProcessReuse = true on ready in index.js removes the warning for me.

// create main BrowserWindow when electron is ready
app.on('ready', () => {
  app.allowRendererProcessReuse = true
  mainWindow = createMainWindow()
})