3 ms·
One of the main reasons I'm using Redux is because of the global store. If I understand the docs correctly this is how you do it in Svelte: https://svelte.dev/
by Kiro 7y ago
One of the main reasons I'm using Redux is because of the global store. If I understand the docs correctly this is how you do it in Svelte:
https://svelte.dev/examples#writable-stores https://svelte.dev/examples#writable-stores
What's up with that? A strange semi-singleton where you need to use writable(0)? Also strange that subscribe return unsubscribe. Doesn't seem very intuitive.