Skip to content

Convert back decorated property accessor to signal (with .get/.set) for 3rd party libs to use. #94

@JulianCataldo

Description

@JulianCataldo

@vtaits/react-signals or use-signals are expecting a Signal.State or a Signal.Computed in their hooks arguments.

Is there a way to "desugar"/"unwrap" a property decorated with an accessor (@signal)?
Right now, we can't use these implementations with those.

Maybe wrapping them in a computed each time? (seems a bit clunky)

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions