Svelte Store: Reactive context using Svelte Store

Опубликовано: 22 Октябрь 2024
на канале: lihautan
2,966
181

How do we make context value reactive?

Context values seemed to be stuck once initialised, how does making the changing values available through context?

---

💻 REPL: https://svelte.dev/repl/e7719405bd044...

📚 Related Resources
getContext and setContext https://svelte.dev/tutorial/context-api

🥰 Support me https://www.buymeacoffee.com/lihautan

🔗 Want to learn more from me? Check out these links:

Twitter:   / lihautan  
Blog: https://lihautan.com/
Newsletter: https://lihautan.com/newsletter

#svelte #sveltestore

Thanks for watching 🥰 -- with love, Li Hau