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

Allow propertySum to consume any amount of properties #144

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

strseb
Copy link
Collaborator

@strseb strseb commented Dec 11, 2024

  • computed can be created without a type, so let's remove the class backing it.
    In FXVPN-10: onboarding flow #142 Matt hit a thing where a sum of more then 2 elements is required, let's refactor propertySum to work with N elements, and add tests for it :)

@strseb strseb mentioned this pull request Dec 11, 2024
@strseb strseb marked this pull request as ready for review December 11, 2024 16:43
Copy link
Member

@lesleyjanenorton lesleyjanenorton left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -42,11 +42,11 @@ export class RequestHandler extends Component {
});

propertySum(
Copy link
Member

Choose a reason for hiding this comment

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

Very snazzy. I think we can tidy RequestHandler up nicely (in a future PR) by adding this.extState to this propertySum and consolidating handleExtensionStateChanges and updateProxyInfoFromClient.

@strseb strseb force-pushed the basti/refactor_vargs_property_sum branch from fa6f17f to 64b369b Compare December 16, 2024 16:34
@strseb strseb merged commit 5ba23f3 into main Dec 16, 2024
5 checks passed
@strseb strseb deleted the basti/refactor_vargs_property_sum branch December 16, 2024 16:36
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