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
🫡 Hi everyone, these are some of the planned things that will happen in the Interprocess v1 release!
I'll update this issue on any additions/changes for the release!
Feel free to suggest anything pertinent!! 🤗
Features
mainSlice - a function that creates an ipc slice for the main process.
it replaces the need of createIpcSlice and combineIpcs usage!
import{mainSlice,createInterprocess}from'interprocess'// The slice can be moved to another file or folder for better organizationconstpingSlice=mainSlice(async(_,data: string)=>{ ... })exportconst{ ipcMain, ipcRenderer, exposeApiToGlobalWindow }=createInterprocess({main: {
pingSlice,}})
rendererSlice - a function that creates an ipc slice for the renderer process.
same as mainSlice but for renderer
middleware/hook support
Docs
improve the docs to give more clarity on how to use interprocess in the best way, mainly to extract the best use of ipcs without the need to create dumb ones to only get the types! This has happened because there are no examples of dynamic import in ipcs and this has generated conflicts and misuse of them.
🫡 Hi everyone, these are some of the planned things that will happen in the Interprocess v1 release!
I'll update this issue on any additions/changes for the release!
Feel free to suggest anything pertinent!! 🤗
Features
mainSlice- a function that creates an ipc slice for the main process.createIpcSliceandcombineIpcsusage!rendererSlice- a function that creates an ipc slice for the renderer process.mainSlicebut for rendererDocs
Breaking changes
combineIpcs(it will be removed on v1)createIpcSlice(it will be removed on v1)