Simon Green
Results
172
comments of
Simon Green
trafficstars
If it won't change, surely it makes little sense to make it `$state` _or_ `$derived`? The warning is that you're doing something a little 'odd' that may not be what...
try ```ts export class Foo { count = $state(0) constructor(initialCount: number) { this.count = initialCount } } ``` `count: number = $state()` is effectively `count: number = undefined`