When using the stateVar decorator I get the error that I can't assign to a read only property. (I am using typescript if that could be the problem.)
import { LitState, stateVar } from 'lit-element-state';
class State extends LitState {
@stateVar()
counter = 0
}
export const state = new State();
When using the stateVar decorator I get the error that I can't assign to a read only property. (I am using typescript if that could be the problem.)