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(SSR): class prop / state reactivity for target es2022 #6099

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

johnjenkins
Copy link
Contributor

@johnjenkins johnjenkins commented Jan 16, 2025

What is the current behavior?

Changes introduced in #6076 caused a regression.

During SSR, the hydration script class Props built with es2022 were no longer reactive.

GitHub Issue Number:

Fixes #6095

What is the new behavior?

The class instance has been 're-wired' on the server (using the same method as the client).

Additionally, when testing, I noticed values set via Props during hydration would not go via custom decorators. This too has been fixed.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Other information

@johnjenkins johnjenkins marked this pull request as ready for review January 17, 2025 01:04
@johnjenkins johnjenkins requested a review from a team as a code owner January 17, 2025 01:04
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: if build with compilerOptions.target = "es2022", SSR ignores Props
2 participants