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
what's the difference with invoke handle
in Electron v7
#25
Comments
I see no benefit of using it instead of this package. |
ipcRenderer.sendSync()
in Electron v7invoke handle
in Electron v7
My mistake, let me explain.. main --> renderermain processwin.webContents.send('main-process-message', false); renderer processipcRenderer.on("main-process-message", (event, arg) => {
state.isActivated = arg;
}); renderer --> mainWhat I want to talk about is Related article: Electron’s ‘remote’ module considered harmful If main processipcMain.handle("windowOperator",async (event, ...args) => {}) renderer processawait ipcRenderer.invoke("renderer-process-message", argument); |
That is a good point, I just discovered this API. I tried using it instead of this module in my current project, seems like it works the same way. |
I am considering whether it is better to switch to new API in electron v7 or not ?
The text was updated successfully, but these errors were encountered: