Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/ipc redux #702

Merged
merged 9 commits into from
Apr 25, 2020
Merged

Feat/ipc redux #702

merged 9 commits into from
Apr 25, 2020

Conversation

c-jacquin
Copy link
Collaborator

@c-jacquin c-jacquin commented Apr 22, 2020

add a ipc middleware to redux store, its role is to send ipc events. This way, redux actions are independant of electron (we should probably do something similar for electron-store).

This PR also optimize ipc exchange for volume and playpause events.
before:
mpris => main => renderer => main
now:
mpris => main => renderer

I also remove mpris.js in core package.
all ipcRenderer related code is now located in ipcContainer and ipcMiddleware.

All events name are defined in an enum in core package.

@c-jacquin c-jacquin requested a review from nukeop April 22, 2020 08:57
@c-jacquin c-jacquin marked this pull request as draft April 22, 2020 11:48
@c-jacquin c-jacquin marked this pull request as ready for review April 22, 2020 15:55
@nukeop
Copy link
Owner

nukeop commented Apr 25, 2020

Wow what a fantastic contribution. It was a long time coming. It's so neat and ordered now it makes it way easier to maintain and use.

@nukeop nukeop merged commit f721e8a into master Apr 25, 2020
@haidang666 haidang666 deleted the feat/ipc-redux branch June 20, 2021 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants