Open dndrsn opened 3 weeks ago
On further investigation, useContentfulLiveUpdates
and ContentfulLivePreview.subscribe
return the error if the entry being subscribed to contains a circular reference. For example if an entry has a reference to another entry and that entry has a reference to the original entry. The reference can be via a reference(s) type field or via a entry link within a rich text field.
Updating the issue title and description updated (again).
👋 Hey, thanks for bringing this up - we will have a look 👀
Describe the bug
ContentfulLivePreview.subscribe
(anduseContentfulLiveUpdates
) return the following error when attempting to subscribe to a REST API entry that contains a circular reference.The data object provided is not transformed and does have both
sys.id
andfields
properties as can been seen in the error message itself:This issue may be a problem with the CMS console endpoint that handles the subscription requests, not this codebase.
To Reproduce Steps to reproduce the behavior:
useContentfulLiveUpdates
orContentfulLivePreview.subscribe
to subscribe to the REST data for one of those entriesExpected behavior No console warning. Live update to data on page in live preview frame.
Context (please complete the following information):