Redial middleware in the renderer process. Provides a dispose
method to
clean up resources as well as methods to get the state from the main
process asynchronously or synchronously.
Whenever an action is fired from the renderer process, forward it to the
main process to ensure global state is in sync. The optional hooks
argument allows you to make changes to the action prior to forwarding it to
the main process and after forwarding to the main process before passing the
action to the next middlewares.
Used to set up action forwarding in the Electron renderer process. Middleware must be added to both processes to ensure communication works.
Usage