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

feat(ssr): warn on host mutations during ssr #4395

Closed
wants to merge 1 commit into from

Conversation

cardoso
Copy link
Contributor

@cardoso cardoso commented Jul 20, 2024

Closes #4394

Details

Does this pull request introduce a breaking change?

  • ๐Ÿ˜ฎโ€๐Ÿ’จ No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • ๐Ÿ”ฌ Yes, it does include an observable change.

New console warning

@cardoso cardoso requested a review from a team as a code owner July 20, 2024 23:03
@nolanlawson
Copy link
Collaborator

Hi, thank you for the contribution! However, this is not quite what we're looking for for #4394. Doing a console.warn is not sufficient, because it's unlikely that the developer will ever see the warning message.

Most likely we need to come up with a new API surface for passing warnings from the SSR renderer to the caller of renderComponent. This new API shape has not been designed yet, so the work is not quite shovel-ready yet.

@cardoso
Copy link
Contributor Author

cardoso commented Jul 24, 2024

Thanks @nolanlawson . I figured it wouldn't be so simple. I'll close this while the API isn't designed yet.

@cardoso cardoso closed this Jul 24, 2024
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.

Log warning for host mutation during SSR
2 participants