PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
9.03k stars 321 forks source link

[EXP] Can the @plasmohq/messaging library be enriched with cases based on more usage scenarios? #665

Open Mis-tian opened 1 year ago

Mis-tian commented 1 year ago

What is the example you wish to see?

How useMessageRelay is used

Is there any context that might help us understand?

No response

Code of Conduct

Mis-tian commented 1 year ago

The useMessage api will get all the data sent via sendToContentScript, some scenarios may only need to receive a specific behavior。

hellskater commented 1 year ago

There is some issue with the useMessage api.

You can check the behaviour in with-messaging example