You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I found the example of passing state into functions a bit complicated and unclear. It might help to simplify the explanation or break it down into smaller steps. I'd really appreciate it!
Hello everyone, I’d like to contribute to this task.
I really liked the two suggestions you provided, @good-dev-student . The example became much clearer! =)
Woud you mind if I submit a PR with your first suggestion?
Changing the code like that would change how the concept of closures is explained, and to me at least it becomes more confusing because there's now a new function introduced, whereas the current docs consistently talk about add as the only function
Hi there! I found the example of passing state into functions a bit complicated and unclear. It might help to simplify the explanation or break it down into smaller steps. I'd really appreciate it!
now:
https://svelte.dev/docs/svelte/$state#Passing-state-into-functions
suggested:
or even :
For the 3 versions i see the same result !
The text was updated successfully, but these errors were encountered: