mirror of https://github.com/sveltejs/svelte
parent
c59b3011e4
commit
6d151ce444
@ -1,3 +0,0 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({});
|
@ -1,10 +0,0 @@
|
||||
<script>
|
||||
function createCounter() {
|
||||
let count = $state(0);
|
||||
return {
|
||||
get count() {
|
||||
return count
|
||||
}
|
||||
};
|
||||
}
|
||||
</script>
|
@ -1,14 +0,0 @@
|
||||
[
|
||||
{
|
||||
"code": "state-not-mutated",
|
||||
"end": {
|
||||
"column": 11,
|
||||
"line": 3
|
||||
},
|
||||
"message": "count is declared with $state(...) but is never updated. Did you mean to create a function that changes its value?",
|
||||
"start": {
|
||||
"column": 6,
|
||||
"line": 3
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in new issue