Skip to content

bug: Properties with type unknown will not be provided #3902

@deleonio

Description

@deleonio

Prerequisites

Stencil Version

2.20

Current Behavior

Prop() myProp: unknown;

This property be always undefined.

If I toggle the type to any, never or something else - it works.

Expected Behavior

If the type of a property is unknown the values should also propagate to the component an Watchers.

System Info

Mac Pro, 13, Chrome 108

Steps to Reproduce

Add a property to your component an use the type unknown.

The value does not come in the componentWillMount for example.

Code Reproduction URL

https://github.com/public-ui/kolibri/blob/efce64888f95ff5117acee53e664ebfa6bb37fd9/packages/library/src/components/input-radio/component.tsx#L175

Additional Information

No response

Metadata

Metadata

Labels

Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions