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

feature: support isFragment #4042

Merged
merged 6 commits into from Aug 3, 2023

Conversation

cbbfcd
Copy link
Contributor

@cbbfcd cbbfcd commented Jun 8, 2023

Comment on lines 63 to 66
if (isValidElement(element)) {
return element.type === Fragment;
}
return false;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (isValidElement(element)) {
return element.type === Fragment;
}
return false;
return isValidElement(element) && element.type === Fragment;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marvinhagemeister fixed, pls CR again.

@coveralls
Copy link

coveralls commented Jun 8, 2023

Coverage Status

coverage: 99.562% (+0.001%) from 99.561% when pulling 05867cc on cbbfcd:feature/support-is-fragment into c294e8b on preactjs:main.

@rschristian rschristian linked an issue Jun 8, 2023 that may be closed by this pull request
@cbbfcd
Copy link
Contributor Author

cbbfcd commented Jun 15, 2023

@marvinhagemeister @rschristian
Excuse me, this feature is blocking our product, is there anything else I need to do here before it gets merged?

@JoviDeCroock JoviDeCroock merged commit d8f2fb3 into preactjs:main Aug 3, 2023
3 checks passed
@JoviDeCroock JoviDeCroock mentioned this pull request Aug 12, 2023
@JoviDeCroock JoviDeCroock mentioned this pull request Apr 27, 2024
13 tasks
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.

support isFragment
5 participants