Skip to content

fix(react): Ignore undefined property values#138

Closed
andys8 wants to merge 1 commit intostenciljs:mainfrom
andys8:fix/react-ignore-undefined-properties
Closed

fix(react): Ignore undefined property values#138
andys8 wants to merge 1 commit intostenciljs:mainfrom
andys8:fix/react-ignore-undefined-properties

Conversation

@andys8
Copy link
Copy Markdown

@andys8 andys8 commented Feb 16, 2021

Change

If a property is set to undefined, instead of missing, this can lead to strange behavior in stencil components. For example default values will be overwritten with undefined. This change will filter 'undefined' values from the properties.

Feedback

Are you open to merging this change?

If a property is set to undefined, instead of missing, this can lead to
strange behavior in stencil components. For example default values will
be overwritten with undefined. This change will filter 'undefined'
values from the properties.
@andys8
Copy link
Copy Markdown
Author

andys8 commented Jun 1, 2021

@adamdbradley Merging this, would be awesome :)

@christian-bromann
Copy link
Copy Markdown
Member

This is not relevant anymore as we use @lit/react now for wrapping the Stencil component. Thanks anyway for the contribution!

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