figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

[DX] AsyncMessaging: explore two-way sync

Open cuserox opened this issue 9 months ago • 0 comments

📚 Context

We need better handling of async messages, it's spread across a number of different files instead of being easy to understand. Ideally we'd have a two-way sync that we can call from both the plugin and the controller without a huge overhead.

🛠 Acceptance Criteria

  • Explore other libraries and projects that do this well:
    • https://github.com/martynaskadisa/figma-comlink
    • https://github.com/labXD/trpc-figma
    • https://github.com/CoconutGoodie/monorepo-networker
  • Discuss and ideate on a plan to replace our current setup
  • PoC it and document

cuserox avatar May 10 '24 15:05 cuserox