mattmilburn/strapi-plugin-preview-button

Suggestion: send messages to opened tab when data changes

Opened this issue ยท 1 comments

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.

Hi @gryphonmyers That's actually a great idea ๐Ÿ™‚ I'll keep this pinned so it can be explored later ๐Ÿ‘๐Ÿป