Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadd example for reactive declaration with a function? #4785
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Hi, I was trying this code and it didn't work:
When I clicked a remove button which removed an uFile (by updating the uFiles array), the totalSize variable wasn't updated.
So I found that this was working:
Re-reading the docs, I saw that this was explained, but kind of hidden (https://svelte.dev/docs#3_$_marks_a_statement_as_reactive).
I believe adding an explicit example with a function call wouldn't hurt much, but would make things much easier to grab, rather than discovering through error/trial.