Closed KayBeSee closed 2 years ago
Right now the app is a monolith and the frontend/backends are closely coupled together.
ipcRenderer
IS_ELECTON
IS_ELECTRON
The final result should allow logic to be shared between web and electron and minimal scaffolding have to be added to support both platforms.
Something like:
ipcMain.on('/lightning-account-data', () => { const data = getLightningData(args); event.reply("/lightning-account-data", data); })
express.get('/lightning-account-data', () => { const data = getLightningData(args); reply(data) })
Closed via 3ea6d2a2e0b16a460fb2bdc2ebef177ebe2929cd
Right now the app is a monolith and the frontend/backends are closely coupled together.
ipcRenderer
calls on the frontend with generic action methodsipcRenderer
calls to the generic action methods withIS_ELECTON
checksipcRenderer
calls to middleware methodsIS_ELECTRON
is not enabledThe final result should allow logic to be shared between web and electron and minimal scaffolding have to be added to support both platforms.
Something like: