Closed HyunmoAhn closed 5 years ago
redux-thunk
is library that make action from object to function.
If we can dispatch all code that must run in main process using redux-thunk
, we don't need to use controller because we just dispatch action that is made by redux-thunk
and transmit it and run it!
Description
We use Controller in main process.
I thought that we may not have to use it.
Why are we using a Controller?
Electron is separated section about main and renderer. Some Electron method must be used in main process, not renderer process. If we execute it in renderer process, It make error!
What does the controller do?
Controller locate in main process. It is subscribing action type and run side-effect matched action type that dispatched.
Should controllers be used in the main process?
Is there a good way to replace a controller?