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

Fix type definition #1447

Merged
merged 1 commit into from Mar 25, 2019
Merged

Fix type definition #1447

merged 1 commit into from Mar 25, 2019

Conversation

38elements
Copy link
Contributor

@38elements 38elements commented Mar 24, 2019

I think that text, key, ref, _children, _dom, _lastDomChild, and _component always exist.

https://github.com/developit/preact/blob/66aa9e24bbf116fa30a5fddce7ebc21d8ea3199f/src/create-element.js#L54-L64

props is set to null.

https://github.com/developit/preact/blob/66aa9e24bbf116fa30a5fddce7ebc21d8ea3199f/src/create-element.js#L87

May I ask.
This is another issue.
Is the reason why setting null to key and ref for V8?
I don't know why it is return createVNode(null, null, possibleVNode, null, null); instead of return createVNode(null, null, possibleVNode);.
https://github.com/developit/preact/blob/66aa9e24bbf116fa30a5fddce7ebc21d8ea3199f/src/create-element.js#L87

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c5b6ce4 on 38elements:type into 66aa9e2 on developit:master.

Copy link
Member

@andrewiggins andrewiggins left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for another great PR 💯

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.

None yet

4 participants