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

Use property for public reactive properties #993

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

KyleJu
Copy link
Collaborator

@KyleJu KyleJu commented Dec 18, 2024

Use @property for public reactive properties. A drive-by fix when I was investigating the timing issue at #992 (review).

These properties are meant to be public and modified from outside of the component through HTML attributes. While both trigger re-renders, state should be used for internal component state, such as

taskTracker: TaskTracker<components['schemas']['FeaturePage'], ApiError> = {

@KyleJu KyleJu marked this pull request as ready for review December 18, 2024 02:42
@KyleJu KyleJu requested review from jcscottiii and jrobbins and removed request for jrobbins December 18, 2024 02:42
@KyleJu KyleJu added this pull request to the merge queue Dec 18, 2024
Merged via the queue into main with commit 91c1655 Dec 18, 2024
6 checks passed
@KyleJu KyleJu deleted the property-cleanup branch December 18, 2024 18:41
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.

2 participants