-
Notifications
You must be signed in to change notification settings - Fork 34
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
refactor(headless, headless-react): no more generic engine in ssr-commerce types #4657
base: master
Are you sure you want to change the base?
Conversation
162dd59
to
5b20de5
Compare
Pull Request ReportPR Title✅ Title follows the conventional commit spec. Live demo linksBundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
5b20de5
to
c1c2a13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice simplification 👍
@@ -38,6 +38,9 @@ export default function ProductList() { | |||
<button onClick={() => addToCart(cartMethods!, product)}> | |||
Add to cart | |||
</button> | |||
<button onClick={() => addToCart(cartMethods!, product)}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there three add to cart buttons?
https://coveord.atlassian.net/browse/KIT-3730
The original ssr solution was made to receive multiple engine. For the commerce use case, we had to duplicate a lot of the code since it was not prepared to receive a solutionType. In that duplication, we copied over the abstraction over the engine. It is not needed in ssr-commerce since every ssr-commerce implementation will always use the same engine which is SSRCommerceEngine.