mirror of https://github.com/sveltejs/svelte
Merge pull request #3315 from Conduitry/gh-3304
Support RxJS Observables in reassigned storespull/3342/head
commit
6cbdd9b04c
@ -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