Please check if your PR fulfills the following requirements:
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Build (npm run build) was run locally for affected output targets
[x] Tests (npm test) were run locally and passed
[x] Prettier (npm run prettier) was run locally and passed
Pull request type
Please check the type of change your PR introduces:
[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):
What is the current behavior?
if a Stencil component has a property like toggleStyle, it would cause it to not being serialized correctly to toggle-style in the server rendered HTML code.
What is the new behavior?
This patch decamelizes all properties.
Does this introduce a breaking change?
[ ] Yes
[x] No
Other information
I changed the kidsNames property to kidName as arrays can't be properly serialized in React.
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally for affected output targetsnpm test
) were run locally and passednpm run prettier
) was run locally and passedPull request type
Please check the type of change your PR introduces:
What is the current behavior?
if a Stencil component has a property like
toggleStyle
, it would cause it to not being serialized correctly totoggle-style
in the server rendered HTML code.What is the new behavior?
This patch decamelizes all properties.
Does this introduce a breaking change?
Other information
I changed the
kidsNames
property tokidName
as arrays can't be properly serialized in React.