Skip to content

Call ipcRenderer.on from renderer #868

Answered by cawa-93
NeekoGta asked this question in Q&A
Discussion options

You must be logged in to vote

It depends on what kind of event it is, how you want to use it, what level of isolation you need, etc. In some cases, I simply proxy the electron event to the native DOM event and listen to the DOM event where needed.
https://github.com/cawa-93/anime-library/blob/8d9042183fde3628f356ab5d149eb457dcdf8182/packages/preload/src/windowControls.ts#L5-L10

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by cawa-93
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@NeekoGta
Comment options

@cawa-93
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants