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

Contextual stores #2016

Closed
Rich-Harris opened this issue Jan 29, 2019 · 1 comment
Closed

Contextual stores #2016

Rich-Harris opened this issue Jan 29, 2019 · 1 comment

Comments

@Rich-Harris
Copy link
Member

Currently, a store referenced with $ must be declared at the top level. But you might want to have an array of stores:

{#each todos as todo}
  <div>
    <input type=checkbox bind:checked={$todo.done}>
    {$todo.description}
  </div>
{/each}
@pngwn
Copy link
Member

pngwn commented May 30, 2021

Closing in favour of #4079 as there is more discussion in that issue, even though it came later.

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

No branches or pull requests

3 participants