Svelte: Store value not set via $-prefix if not used in template

Created on 8 Sep 2019  Â·  2Comments  Â·  Source: sveltejs/svelte

Code for updating store value doesn't generated if store value actually not used in the component even if it used in other components.

REPL: https://svelte.dev/repl/ebcbacf20ea3402c990c92c7caf81ac6?version=3.10.1

If uncomment store usage in template example start to works correctly.

bug

All 2 comments

Should be mentioned that this worked in 3.10.0 as per repl url change

thanks — looking into it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bestguy picture bestguy  Â·  3Comments

juniorsd picture juniorsd  Â·  3Comments

mmjmanders picture mmjmanders  Â·  3Comments

davidcallanan picture davidcallanan  Â·  3Comments

rob-balfre picture rob-balfre  Â·  3Comments