Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Example using Lit #2178

Closed

Conversation

christian-bromann
Copy link

Lit is a great framework for building apps based on web components. This patch adds a TodoMVC example using this framework + Redux for data management. If desired I can remove the redux part.

Comment on lines +26 to +29
get isEditing () {
const state = store.getState()
return this.todo.id === state.editingTodo
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to connect the TodoList component, and pass isEditing as a boolean property.
This way we wouldn't rerender all the items (see requestUpdate below) when the state of just one item changes, or even the state of any other thing that's not related to these items.

Note that I know very little about Lit so I may be off here.

@flashdesignory
Copy link
Collaborator

closing in favor of #2196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants