You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application I have two windows with different type of routers. For both windows I'm trying to register IPC handlers using createIPCHandler({router: router1, windows: [win1]}) and createIPCHandler({router: router2, windows: [win2]}).
When I try to invoke some query from win1, I'm getting the following error:
TRPCClientError: No "query"-procedure on path "getSomething"
I assume it happens because both routers replies to the same query simultaneously which brings to race condition. In my case, router2 is trying to handle a query that can be handled only by router1.
It would be nice to check event.source inside ipcMain.on message handler and process only those messages which come from BrowserWindow passed in windows property of createIPCHandler call.
The text was updated successfully, but these errors were encountered:
Hi,
In my application I have two windows with different type of routers. For both windows I'm trying to register IPC handlers using
createIPCHandler({router: router1, windows: [win1]})
andcreateIPCHandler({router: router2, windows: [win2]})
.When I try to invoke some query from win1, I'm getting the following error:
I assume it happens because both routers replies to the same query simultaneously which brings to race condition. In my case,
router2
is trying to handle a query that can be handled only byrouter1
.It would be nice to check
event.source
inside ipcMain.on message handler and process only those messages which come from BrowserWindow passed inwindows
property ofcreateIPCHandler
call.The text was updated successfully, but these errors were encountered: