You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Stencil Version
4.0.0
Current Behavior
It is not possible to add a custom decorator after the @prop decorator. Calling to "Custom Decorator" is cancelled for some reason. When I use the same Custom Decorator without the @prop decorator it does run:
@Prop()CustomDecorator()myProp;
This doesn't work. But this one does:
CustomDecorator()Another()Other()myProp;
Expected Behavior
I would like to be able to work with custom decorators that allow me to perform certain actions before assigning the value to the property, like so:
@Prop()ParsingData()MyProperty;
In this way, it could execute actions depending on the type of information it receives, before assigning the value to the property "MyProperty"
Hey @luenmuvel, sorry you're running into this issue. I believe this is a duplicate of #3831 which is already on our radar - we have plans to fix this and to enable Stencil users to write with custom decorators. Accordingly I'm going to close this, but not because I don't think it's important!
Prerequisites
Stencil Version
4.0.0
Current Behavior
It is not possible to add a custom decorator after the @prop decorator. Calling to "Custom Decorator" is cancelled for some reason. When I use the same Custom Decorator without the @prop decorator it does run:
This doesn't work. But this one does:
Expected Behavior
I would like to be able to work with custom decorators that allow me to perform certain actions before assigning the value to the property, like so:
In this way, it could execute actions depending on the type of information it receives, before assigning the value to the property "MyProperty"
System Info
Steps to Reproduce
You just need to create a property decorator and add it as the second decorator of your property in your Stencil component.
Code Reproduction URL
git@github.com:luenmuvel/stencil-decorators.git
Additional Information
No response
The text was updated successfully, but these errors were encountered: