Closed phouse512 closed 5 years ago
I had a similar problem. You can try the downgraded version to solve this problem.
@WhiteMinds which version did you downgrade to? thanks for the help!
@WhiteMinds你把哪个版本降级为?谢谢您的帮助!
"electron-better-ipc": "^0.2.0"
@issuehunt has funded $60.00 to this issue.
Reported I had a similar problem. My package version is 0.3.0
@particle4dev if you use 0.2.0, does it solve your problem?
@phouse512 yes, I downgrade to 0.2.0 and it solves my problem. You can try!
I fix the issue in my fork. https://github.com/garrylachman/electron-better-ipc
@sindresorhus has rewarded $54.00 to @garrylachman. See it on IssueHunt
The issue seems to be still active. I have to use the fork to receive messages in Main.
Hello, I've run into this issue over the past week that I've been unable to move beyond, and I would appreciate another pair of eyes.
In my renderer, I have 2 separate pieces of code that use
callMain
to get a response back from the main process. One of them returns data just fine, the other returns nothing at all, despite logging showing that the main listener receives it and returns successfully. I even used devtron to see that a message is getting sent to the renderer, but for some reason the listener is not working as expected.I wonder if I am just fundamentally misinterpreting the library, or if there is something causing my second call to fail. Any thoughts would be appreciated. Main and rendering code is shown below:
renderer.js
My main file:
am I doing something wrong by having multiple ipc answer renderers here? Any thoughts or ideas are appreciated. As a note, my renderer code is written for use with
redux-saga
.IssueHunt Summary
#### [ garrylachman](https://issuehunt.io/u/garrylachman) has been rewarded. ### Backers (Total: $60.00) - [ issuehunt](https://issuehunt.io/u/issuehunt) ($60.00) ### Submitted pull Requests - [#16 Bugfix #14](https://issuehunt.io/r/sindresorhus/electron-better-ipc/pull/16) --- ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/sindresorhus/electron-better-ipc/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. --- IssueHunt has been backed by the following sponsors. [Become a sponsor](https://issuehunt.io/membership/members)