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

refactor: This is horrific but seems to work? #4662

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

rschristian
Copy link
Member

"works", fugly though. Probably need to iterate on it further

@JoviDeCroock JoviDeCroock merged commit 5abf2e5 into remove-defaultprops Feb 13, 2025
6 checks passed
@JoviDeCroock JoviDeCroock deleted the types/remove-defaultprops branch February 13, 2025 12:07
JoviDeCroock added a commit that referenced this pull request Feb 13, 2025
* Move `defaultProps` into `preact/compat`

This will be handled in `options.vnode` for function/class components.
This hook gets called for every invocation of `jsx`/`createElement` and
`cloneElement`.

* Try it

* refactor: This is horrific but seems to work? (#4662)

---------

Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
JoviDeCroock added a commit that referenced this pull request Feb 13, 2025
* Move `defaultProps` into `preact/compat`

This will be handled in `options.vnode` for function/class components.
This hook gets called for every invocation of `jsx`/`createElement` and
`cloneElement`.

* Try it

* refactor: This is horrific but seems to work? (#4662)

---------

Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
JoviDeCroock added a commit that referenced this pull request Feb 18, 2025
* Move `defaultProps` into `preact/compat`

This will be handled in `options.vnode` for function/class components.
This hook gets called for every invocation of `jsx`/`createElement` and
`cloneElement`.

* Try it

* refactor: This is horrific but seems to work? (#4662)

---------

Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
JoviDeCroock added a commit that referenced this pull request Feb 19, 2025
* Move `defaultProps` into `preact/compat`

This will be handled in `options.vnode` for function/class components.
This hook gets called for every invocation of `jsx`/`createElement` and
`cloneElement`.

* Try it

* refactor: This is horrific but seems to work? (#4662)

---------

Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
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