Replies: 4 comments 2 replies
-
Hi, I agree that it might feel a bit confusing initially. There are three main actors:
Web script communicates with content script in an event-based fashion. When we call Regarding subscriptionBefore making any call like Communication Flowweb script -> extension-content-script -> extension-service-worker Please review signify-polaris-web. I am open to discuss if there is a better way to implement this. Let's continue the discussion under this thread. 🧵 |
Beta Was this translation helpful? Give feedback.
-
@HunnySajid I had a discussion with @lenkan today about the event pub/sub design. Is there a need for having an id with each request so that you know which response matches your request? Does window.postMessage help with that? |
Beta Was this translation helpful? Give feedback.
-
I have created a sequence diagram to elaborate the workflow. Also, created a video to walkthrough the sequence diagram. (Please turn subtitles on if inaudible) I tried to elaborate on the workflow. Let me know your feedback about it. Also, We can add unique IDs with requests to identify. |
Beta Was this translation helpful? Give feedback.
-
I think the new additions is addressing my concerns for this specific discussion. Looks great! |
Beta Was this translation helpful? Give feedback.
-
I find the usage of the API a bit unclear. The docs specify something like this for a react app:
I find it a bit confusing what to do with this. I understand there is some sort of subscription that should be done as well. I am wondering if this can be done as part of the polaris library somehow. Something like this would be simpler to use in my opinion.
Do you have any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions