• 请不要在回答技术问题时复制粘贴 AI 生成的内容
leoleoasd
V2EX  ›  程序员

[新轮子]基于 IPC 的线程安全的 electron 主进程与渲染进程之间的数据同步框架

  •  
  •   leoleoasd ·
    leoleoasd · Jun 24, 2018 · 2400 views
    This topic created in 3023 days ago, the information mentioned may be changed or developed.

    主要是给 electron-vue 用的

    在主进程中修改变量,会自动同步到 vuex 中,自动渲染页面

    vue 中修改数据会自动同步到主进程中

    支持 subscribe: 当指定 key 值的变量变化时,调用回调函数

    求 STAR!!

    GITHUB

    plqws
        1
    plqws  
       Jun 24, 2018
    我也做过类似的东西,不过是用于 React 和 Mobx 的,electron 在这方面挺蛋疼的,尤其是 ipc 性能还巨差
    leoleoasd
        2
    leoleoasd  
    OP
       Jun 24, 2018
    @plqws emm 弱鸡后端转前端表示并不了解 2333
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2447 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:38 · PVG 20:38 · LAX 05:38 · JFK 08:38
    ♥ Do have faith in what you're doing.