Throw a warning if we are declaring a variable with const and also using bind directive to mutate its value. #4479
Labels
feature request
good first issue
A small, encapsulated issue, ideal for a new contributor to Svelte to tackle.
Is your feature request related to a problem? Please describe.

While defining a variable in #Svelte, make sure to use let/var and not const, otherwise those bindings won't work, as it can't be updated by its compiler.
Describe the solution you'd like
Throw a warning or error.
Describe alternatives you've considered
Using let always.
How important is this feature to you?
It brings a delight to users.
The text was updated successfully, but these errors were encountered: