realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

Improve Electron support by allowing renderer process "context isolation" and disabled "node integration"

Open rossicler-hostalky opened this issue 7 months ago • 9 comments

Problem

Hi, I'm wondering if there's any plan on supporting @realm/react usage in a Electron app. I know it's possible to use with nodeIntegration: true and contextIsolation: false, but since enabling that is a security risk, I don't think it would be a good solution.

Solution

Usage of @react/realm in the renderer process without the need to use nodeIntegration: true and contextIsolation: false. Most likely by installing a renderer safe react library that would communicate with the main process to handle all updates.

Alternatives

No response

How important is this improvement for you?

Would be a major improvement

Feature would mainly be used with

Atlas Device Sync

rossicler-hostalky avatar Jul 19 '24 15:07 rossicler-hostalky