Video details

Svelte Store: 3 tips to manage complex Svelte store

Svelte
03.24.2021
English

If you have large and complex Svelte store, and you feel they are slowing your Svelte application down, here are 3 tips to manage them
Introduction 00:00
1. If you have a complex state, avoid manipulating the writable store directly 05:35
2. Have a small, self-contained store 17:04
3. If you have a large store, subscribe to its derived sub store if possible 23:08
---
đź’»
REPL: https://svelte.dev/repl/e7719405bd04453aa535d898716c5c90?version=3.35.0
đź“š
Related Resources XState as Svelte store https://youtu.be/NIfQsc5XAzU Valtio as Svelte store https://youtu.be/1WOcEvUX-hU Redux as Svelte store https://youtu.be/7uCNx764FCs Immer for Immutable Svelte store https://youtu.be/mHqCAEUkiWs
🥰 Support me https://www.buymeacoffee.com/lihautan
đź”—
Want to learn more from me? Check out these links:
Twitter: https://twitter.com/lihautan Blog: https://lihautan.com/ Newsletter: https://lihautan.com/newsletter
#svelte #sveltestore
Thanks for watching 🥰 -- with love, Li Hau