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

Formalize $(...) as operator for reactive store binding #7102

Closed
iacore opened this issue Jan 5, 2022 · 1 comment
Closed

Formalize $(...) as operator for reactive store binding #7102

iacore opened this issue Jan 5, 2022 · 1 comment

Comments

@iacore
Copy link

iacore commented Jan 5, 2022

Describe the problem

Currently, only top lever reactive store variables can be used with the syntax $var_name. $(list[0].text), $let_binding are all illegal.

By making $(any, expression) valid, in addition to $identifier would solve the problems of #3617.

Describe the proposed solution

https://svelte.dev/repl/ca5c3ef8604a44ffa096a792d5d0fa86?version=3.44.3

Alternatives considered

The same functionality can be achieve by making each code fragment a new component. This would leave us with components with a few lines and no meaning outside the only parent component it is used.

Importance

would make my life easier

@Conduitry
Copy link
Member

Duplicate of #4079.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants