If you are used to the $-prefixed variable to access the value of the store, great, but that only works in a .svelte component. Ever wonder how would you do it outside of the Svelte component?
A svelte store is any variable that follows the svelte store contract, which means the only method you can use to figure out the value is the `subscribe` method.
Related Resources get() https://svelte.dev/docs#get
🥰 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
Thanks for watching 🥰 -- with love, Li Hau