reflex-app / reflex-app/reflex

Move Electron Remote calls to ipcRender.invoke()

Open
#140 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement Type: Performance
Dominant language
Vue
Stars
34
Forks
1
PR merge metrics
No merged PRs in 30d

Description

(Depends on Electron 7.0)
It is suggested to avoid using the remote module of Electron for security and performance issues. Electron 7.0 has some new functions to use instead.


  • Replace all remote calls with @electron/remote
  • Standardize a way to organize communications between main and renderer process (IPC)
  • Refactor requests like remote.app.name and remote.app.version so that this data is available when the app loads. Maybe store this info in Vuex Store?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating every use of Electron's remote module, then read the linked Electron 7.0 migration guidance and review how main and renderer processes currently communicate. Done means remote calls are replaced, IPC communication is organized consistently, and app name and version are available when the app loads.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron
Domain
desktop
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.