Skip to content

Missing information in documentation about the ipcMain.on('subscribe') handler part #7

@Lin-TY-Yang

Description

@Lin-TY-Yang

Hi, thank you for the great work on this package!

While integrating the package, I found that the following code is required during the window creation phase for proper functionality:

ipcMain.on('subscribe', async (state: unknown) => {
	if (mainWindow?.isDestroyed()) return
	mainWindow?.webContents?.send('subscribe', state)
})

However, this requirement is not clearly mentioned in the documentation or demonstrated in the example projects. Including this snippet or noting its necessity would be very helpful for users trying to get started.

Appreciate your efforts—thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions