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

fix: do not send admin dependencies to client #9583

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Nov 27, 2024

We were sending unrendered PayloadComponents to the client, which is a remnant of old betas where those were actually rendered.

There is no point sending them to the client as they are useless there and cannot be rendered without the server-only importMap. Additionally, this could have potentially caused server-only modules to be sent to the client (e.g. if serverProps was used), which would have lead to a webpack error.

The types were also incorrect, as admin.dependencies on the ClientConfig did not contain the React nodes.

@AlessioGr AlessioGr enabled auto-merge (squash) November 27, 2024 23:18
@AlessioGr AlessioGr enabled auto-merge (squash) November 27, 2024 23:43
@AlessioGr AlessioGr merged commit 3da9be0 into main Nov 27, 2024
62 checks passed
@AlessioGr AlessioGr deleted the fix/do-not-send-admin-dependencies-to-client branch November 27, 2024 23:51
Copy link

🚀 This is included in version v3.2.2

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