Skip to content

Refactor attributes checks#1953

Merged
axelboc merged 5 commits intomainfrom
attributes-checks
Feb 3, 2026
Merged

Refactor attributes checks#1953
axelboc merged 5 commits intomainfrom
attributes-checks

Conversation

@axelboc
Copy link
Contributor

@axelboc axelboc commented Jan 30, 2026

I now make full use of the type guards for type-checking attributes. It's more verbose than before, but it feels a lot safer and cleans up a few tough cases nicely. It even removes the need for AttrValuesStore#getSingle() — I had struggled with it when attempting the React 19 migration, so taking it out of the equation might help a little.

Finally it removes a few cases where we used to call attrValuesStore#get() directly without checking first if the attributes we're after were present. Hopefully this will save a few requests when working with remote providers.

@axelboc axelboc force-pushed the attributes-checks branch 2 times, most recently from f498bba to 0cf5ebc Compare January 30, 2026 10:17
@axelboc axelboc requested a review from loichuder January 30, 2026 10:33
Base automatically changed from shape-type to main January 30, 2026 10:42
@axelboc axelboc force-pushed the attributes-checks branch 3 times, most recently from 3868f02 to 86bea59 Compare January 30, 2026 13:55
@axelboc axelboc merged commit 5456eec into main Feb 3, 2026
13 checks passed
@axelboc axelboc deleted the attributes-checks branch February 3, 2026 10:01
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