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

Ensure update/render can be triggered by rendering #555

Merged
merged 4 commits into from
Jan 17, 2020

Conversation

sorvell
Copy link
Member

@sorvell sorvell commented Feb 7, 2019

Fixes #549. Changes UpdatingElement such that updates can occur after calling super.update(). Changes LitElement such that update/render can occur as a result of rendering, for example if an event listener is triggered that sets a property.

Fixes #549. Changes `UpdatingElement` such that updates can occur after calling `super.update()`. Changes `LitElement` such that update/render can occur as a result of rendering, for example if an event listener is triggered that sets a property.
Steven Orvell and others added 3 commits January 17, 2020 11:22
Update should be marked ready for additional/new updates when:
1. After the `update` method is called (e.g. after super.update(...))
2. If `shouldUpdate` return false. Returning false indicates that this update turn should be ignored but future updates should be processed.
3. If there is an exception during `update`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First render event updates appear not to trigger update
3 participants