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

Alternative approach to checking cart #7

Merged
merged 3 commits into from
Aug 23, 2019
Merged

Conversation

Eckhardt-D
Copy link
Contributor

Hi I had a look around in the project. It's awesome. I thought I'd contribute by suggesting an alternative Array method on the addToCart store mutation. It's minimal, but find seems to perform better on tests I ran. (Array of objects size 1000).

Copy link
Owner

@sdras sdras left a comment

Choose a reason for hiding this comment

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

It's an improvement! Just one nit.

store/index.js Outdated Show resolved Hide resolved
@Eckhardt-D
Copy link
Contributor Author

It's an improvement! Just one nit.

Is the last commit what you meant? And also, is it okay that I'm so active on the repo? I have the branches for issue #12 and issue #8 finished too, I just forgot to branch at the start, so they both include this PR.. I'll wait for your feedback before opening those PR's. :)

@sdras
Copy link
Owner

sdras commented Aug 23, 2019

Yep this is exactly what I meant! It's great, thank you.

@sdras sdras merged commit e7461db into sdras:master Aug 23, 2019
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.

None yet

2 participants