Skip to content

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

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

Merged
merged 4 commits into from
Jun 26, 2025

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Jun 23, 2025

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
161 of 164 checks passed
@jacobsfletch jacobsfletch deleted the fix/live-preview-client-types branch June 26, 2025 18:05
Copy link
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.

None yet

1 participant