Skip to content

Will this project support setters for @Props? #2879

Closed

Description

@adrm

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.

Activity

  1. chenyulun commented on Apr 9, 2021

    @chenyulun

    You can look at the stencil-store source code, and you can implement it yourself and control updates

  2. adrm commented on Apr 9, 2021

    @adrm
    Author

    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.

  3. johnjenkins commented on Apr 29, 2021

    @johnjenkins
    Contributor

    I will be submitting a PR which should solve this issue :)
    (Mentioned as per the contributing guide)

  4. adrm commented on Jun 4, 2021

    @adrm
    Author

    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!

  5. splitinfinities commented on Nov 9, 2021

    @splitinfinities
    Contributor

    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. 🎉

  6. added
    Feature: Want this? Upvote it!
    on Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Want this? Upvote it!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions