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
{{ message }}
Repository navigation
Will this project support setters for @Props? #2879
Duplicate of #1359, but that one is locked and left open without an answer.
I would like to at least know if the team is even contemplating this possibility. I would like to be able to do this because I want an easy way for a user of my component to set a value without creating a new prop, assiging it to a lower-level object instead. This would be ideal to make code cleaner, together with all the needs voiced in the original issue.
Sorry for duplicating the issue, I didn't find a better way to do this.
Reacted by Mark, Yevgeniy Belov, jase and John Reeves
I am familiar with stencil-store, but I think using that library would not fill my need, or the needs of the devs in the original issue.
In my case, I would like to have a component that allows to set a prop which only sets the value to an inside input. I can do that with a normal prop and a listener, but that forces me to have a prop that duplicates the inside input state and can lead to errors.
Hi @johnjenkins how safe is to use your stencil fork as you state in your PR? Do you intend to keep it updated with upstream? Was it created to be used in some enterprise project, so that you might be sponsored to maintain your fork in the long run?
I've seen very low activity in this repo this last months, so I am a bit worried about the long term health of Stencil, which is a core dependency for the company I work in. Could you contact me through the mail in my GitHub profile so we can talk about how can we help on this? I have not found any way to contact you privately.
I wanted to give folks a heads up that we are doing research on feasibility of JJ's Getters/Setters PR this quarter! We'll have more to share as we get into it. 🎉
Activity
chenyulun commentedon Apr 9, 2021
You can look at the stencil-store source code, and you can implement it yourself and control updates
adrm commentedon Apr 9, 2021
I am familiar with stencil-store, but I think using that library would not fill my need, or the needs of the devs in the original issue.
In my case, I would like to have a component that allows to set a prop which only sets the value to an inside input. I can do that with a normal prop and a listener, but that forces me to have a prop that duplicates the inside input state and can lead to errors.
johnjenkins commentedon Apr 29, 2021
I will be submitting a PR which should solve this issue :)
(Mentioned as per the contributing guide)
adrm commentedon Jun 4, 2021
Hi @johnjenkins how safe is to use your stencil fork as you state in your PR? Do you intend to keep it updated with upstream? Was it created to be used in some enterprise project, so that you might be sponsored to maintain your fork in the long run?
I've seen very low activity in this repo this last months, so I am a bit worried about the long term health of Stencil, which is a core dependency for the company I work in. Could you contact me through the mail in my GitHub profile so we can talk about how can we help on this? I have not found any way to contact you privately.
Thanks!
splitinfinities commentedon Nov 9, 2021
I wanted to give folks a heads up that we are doing research on feasibility of JJ's Getters/Setters PR this quarter! We'll have more to share as we get into it. 🎉