-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store documentation and tutorial #3694
Comments
I agree that stores could be explained better in the API docs. It is after all a fairly simple concept, but for a newcomer to Svelte it's not that obvious how stores work and how one should use them. In the API docs, svelte/store links to a low-level explanation of how stores are implemented with a rudimentary I found this RFC useful to better understand Svelte 3's stores. Especially this line:
I think that should be explained up-front so the reader has the right idea of what a store is before diving in. I also think it would help to have more real-world examples of how stores should be used. When Svelte gets a cookbook page/site one could link to recipes there. Until then, a more substantial example than |
I agree some interlinking would be nice but for that I'd open another issue with a table of correspondences like:
so that we can evaluate how many links we would have to add and what's missing. |
OK, I'll have a look at that when I have the time! |
Duplicate of #3053 . |
The tutorial for stores uses an integer count in the example. It doesn't talk about other values like whether or not we can put objects/dictionaries in a store. It doesn't explain the writable() syntax.
The text was updated successfully, but these errors were encountered: