Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add $derive:property directive #1

Open
hawkticehurst opened this issue Oct 21, 2023 · 0 comments
Open

Add $derive:property directive #1

hawkticehurst opened this issue Oct 21, 2023 · 0 comments
Labels
enhancement New feature or request under consideration A feature request is is being considered, but is not committed.

Comments

@hawkticehurst
Copy link
Owner

hawkticehurst commented Oct 21, 2023

Feature description

Potentially add a $derive:property directive that will derive new state based on existing state(s), tied to an element property.

Syntax

$derive:property="callback(...statenames)"

Usage

Like the $derive directive, $derive:property will be a way of creating new state based on other state in a Stellar component, but the new state will be tied to an element property instead of element text content.

Notes

I'm still not sure if this is needed or not.

Goal: Can I find use cases/scenarios where we need a reactive property that is dependent on other states?

@hawkticehurst hawkticehurst changed the title [Under consideration]: Add $derive:property directive Add $derive:property directive Oct 21, 2023
@hawkticehurst hawkticehurst added enhancement New feature or request under consideration A feature request is is being considered, but is not committed. labels Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request under consideration A feature request is is being considered, but is not committed.
Projects
None yet
Development

No branches or pull requests

1 participant