Skip to content

Experimenting with stubs for mixins' methods on the base class#64

Open
DmitrySharabin wants to merge 5 commits intoclass-mixinsfrom
rudimentary-init
Open

Experimenting with stubs for mixins' methods on the base class#64
DmitrySharabin wants to merge 5 commits intoclass-mixinsfrom
rudimentary-init

Conversation

@DmitrySharabin
Copy link
Member

No description provided.

Copy link
Contributor

@LeaVerou LeaVerou left a comment

Choose a reason for hiding this comment

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

Nice but we should not special case to init — what do we do when two mixins happen to define the same method? What about other lifecycle hooks, like connectedCallback()?
The test should be "does the host class have this method?" not "does the host class have init?"

@DmitrySharabin DmitrySharabin changed the title Experimenting with default init() Experimenting with stubs for mixins' methods on the base class Nov 3, 2025
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