You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I update my content for the first time, the CONTENT_UPDATED message is sent after a significant delay (~5s). Subsequent updates work as expected.
When I have some content saved (and unpublished) and open Live Preview, Contentful does not send the initial CONTENT_UPDATED event to populate the iframe app with the saved and unpublished content.
To Reproduce
Steps to reproduce the behavior:
Add the following lines to console.log messages received by your frontend rendered within iframe
Hi 👋 I am afraid that's intended behaviour. The auto-save event in Contentful currently saves every 5 seconds. We then sent over an event CONTENT_UPDATED so customers can react to this behaviour.
We are thinking of creating a better experience here (e.g. manual save trigger or reducing the seconds). But I can't communicate any timeline yet.
If you want immediate live updates then you can use the useLiveUpdates hook, then you don't have to wait for the save event.
Describe the bug
CONTENT_UPDATED
message is sent after a significant delay (~5s). Subsequent updates work as expected.CONTENT_UPDATED
event to populate the iframe app with the saved and unpublished content.To Reproduce
Steps to reproduce the behavior:
Expected behaviors
Message arrives immediately.
Screenshots / example
Delay:
https://github.com/contentful/live-preview/assets/39009379/c98aa0a6-0488-4393-903d-348bd6636b67
Missing first update message:
https://github.com/contentful/live-preview/assets/39009379/e839f83a-c9a0-41e0-9147-4e5892a90526
Context (please complete the following information):
3.3.1
Additional context
Our live preview usage. The
data
we pass is either a VueJS ref or React'suseState
state.The text was updated successfully, but these errors were encountered: