Skip to content

fix: restore missing properties to live preview client config - #12904

Merged
jacobsfletch merged 4 commits into
mainfrom
fix/live-preview-client-types
Jun 26, 2025
Merged

jacobsfletch merged 4 commits into
mainfrom
fix/live-preview-client-types

Conversation

@jacobsfletch

@jacobsfletch jacobsfletch commented Jun 23, 2025 •

Copy link
Copy Markdown
Member

Needed for #12860.

The client config unnecessarily omits the livePreview.collections and livePreview.globals properties. This is because the root live preview config extends the type with these two additional properties without sharing it elsewhere. To led to the client sanitization function overlooking these additional properties, as there was no type indication that they exist.

The collections and globals properties are now appended to the client config as expected, and the root live preview is standardized behind the RootLivePreviewConfig type to ensure no properties are lost.


@jacobsfletch jacobsfletch changed the title fix: restore unnecessarily sanitized live preview properties in the client config fix: restore properties to live preview client config Jun 23, 2025
@jacobsfletch jacobsfletch changed the title fix: restore properties to live preview client config fix: restore missing properties to live preview client config Jun 23, 2025
@jacobsfletch
jacobsfletch merged commit bcb10b5 into main Jun 26, 2025
@jacobsfletch
jacobsfletch deleted the fix/live-preview-client-types branch June 26, 2025 18:05
@github-actions

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.44.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant