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

test(ssr): add test for superclass with args passed in #5076

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

nolanlawson
Copy link
Collaborator

Details

If you have a superclass with arguments in its constructor, and if the subclass tries to pass in those arguments via super, then this currently fails in SSR compiler. The reason is that the SSR compiler overwrites the constructor's args with its own propsAvailableAtConstruction object.

This adds a test to repro this.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@nolanlawson nolanlawson requested a review from a team as a code owner December 20, 2024 21:27
@nolanlawson nolanlawson merged commit 55cab76 into master Dec 20, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/superclass-args branch December 20, 2024 22:53
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.

2 participants