mirror of https://github.com/sveltejs/svelte
parent
cf5dd8ff75
commit
60af0d7781
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
html: `42`,
|
||||||
|
};
|
@ -0,0 +1,11 @@
|
|||||||
|
<script>
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
function fake_observable(store) {
|
||||||
|
return { subscribe: cb => ({ unsubscribe: store.subscribe(cb) }) };
|
||||||
|
}
|
||||||
|
|
||||||
|
let foo = fake_observable(writable(0));
|
||||||
|
foo = fake_observable(writable(42));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{$foo}
|
Loading…
Reference in new issue