Hardocs / desktop-app

Hardocs desktop app presenting current docs editing functionalities.
GNU General Public License v2.0
3 stars 2 forks source link

Move the ipc renderer calls out of the state to the service layer. #75

Closed DNature closed 3 years ago

DNature commented 3 years ago

The best place to keep this operation is in the store file because that is the only module it requires. We can also create a new file, require the store module and import it back to the store. However, if this is a typescript project, this is going to throw an error.

DNature commented 3 years ago

I created a function that takes the store as a parameter and returns operations for the IPC Renderer process. Please review this @jurra