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

[SSR] Superclasses cannot have constructor arguments #5080

Open
nolanlawson opened this issue Dec 20, 2024 · 1 comment · May be fixed by #5094
Open

[SSR] Superclasses cannot have constructor arguments #5080

nolanlawson opened this issue Dec 20, 2024 · 1 comment · May be fixed by #5094

Comments

@nolanlawson
Copy link
Collaborator

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

nolanlawson added a commit that referenced this issue Jan 3, 2025
@nolanlawson nolanlawson linked a pull request Jan 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant