lit / lit-element

LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
https://lit-element.polymer-project.org
BSD 3-Clause "New" or "Revised" License
4.49k stars 319 forks source link

state() is shown as deprecated in LitElement 2.5 #1191

Closed Artur- closed 3 years ago

Artur- commented 3 years ago

Description

@customElement('chat-view')
export class ChatView extends View {
  @state()
  private items: ChatItem[] = [];

This is shown in VS Code as image

justinfagnani commented 3 years ago

Oops! That's what happens when you copy and paste internalProperty() 😬