Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[SSR] Superclasses cannot have constructor arguments #5080

Closed
nolanlawson opened this issue Dec 20, 2024 · 1 comment · Fixed by #5094
Closed

[SSR] Superclasses cannot have constructor arguments #5080

nolanlawson opened this issue Dec 20, 2024 · 1 comment · Fixed by #5094

Comments

@nolanlawson
Copy link
Contributor

nolanlawson commented Dec 20, 2024

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 the SSR compiler. The reason is that the SSR compiler overwrites the constructor's args with its own propsAvailableAtConstruction object.

See #5076

Copy link

git2gus bot commented Dec 20, 2024

This issue has been linked to a new work item: W-17486503

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant