Suggestion: send messages to opened tab when data changes
Opened this issue ยท 1 comments
gryphonmyers commented
The use case is: an editor has both the CMS and the preview URL open. They edit some data in the CMS, and the preview URL automatically updates to reflect their edit.
I believe this could be accommodated with postMessage, so long as we have a reference to the opened tab. This would enable the developer of the frontend preview app to listen for messages coming from the plugin and do a reload or patch the app with the changed data.
mattmilburn commented
Hi @gryphonmyers That's actually a great idea ๐ I'll keep this pinned so it can be explored later ๐๐ป