Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@web-padawan
Copy link
Contributor

@web-padawan web-padawan commented Oct 27, 2021

What I did

Changed willUpdate() to be protected, same as related hooks: update(), updated() and firstUpdated().

Fixes #2266

Main question: should we consider this change safe for a patch release? It might break someone's code 🤔

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2021

🦋 Changeset detected

Latest commit: aae9e9e

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@google-cla google-cla bot added the cla: yes label Oct 27, 2021
@web-padawan web-padawan force-pushed the fix/will-update-protected branch from 8449936 to aae9e9e Compare October 27, 2021 19:12
@justinfagnani
Copy link
Collaborator

I personally think this is small enough and shouldn't break correct code so we an consider it non-breaking.

@justinfagnani justinfagnani merged commit eb5c5d2 into lit:main Nov 18, 2021
@web-padawan web-padawan deleted the fix/will-update-protected branch November 18, 2021 21:00
This was referenced Jan 5, 2022
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.

[reactive-element] Make willUpdate lifecycle method protected

2 participants