Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: send messages to opened tab when data changes #126

Open
gryphonmyers opened this issue Nov 30, 2023 · 1 comment
Open

Suggestion: send messages to opened tab when data changes #126

gryphonmyers opened this issue Nov 30, 2023 · 1 comment
Labels
request Request for a feature

Comments

@gryphonmyers
Copy link

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 mattmilburn added the request Request for a feature label Jan 7, 2024
@mattmilburn mattmilburn pinned this issue Jan 7, 2024
@mattmilburn
Copy link
Owner

Hi @gryphonmyers That's actually a great idea 🙂 I'll keep this pinned so it can be explored later 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Request for a feature
Projects
None yet
Development

No branches or pull requests

2 participants