mirror of https://github.com/sveltejs/svelte
fix: add check for template store to conditional (#1829)
* fix: add check for template store to conditional * fix: move store check to generation Per @Conduitry's request * test: add test to ensure declative store works * test: rename to better match functionalitypull/1836/head
parent
03c7612c6b
commit
cb4a46d33f
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
compileOptions: {
|
||||
dev: true
|
||||
}
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
<p>{$foo}</p>
|
||||
|
||||
<script>
|
||||
import { Store } from '../../../../store.js';
|
||||
|
||||
const store = new Store({ foo : "foo" });
|
||||
|
||||
export default {
|
||||
store : () => store,
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue