-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Peregrine implementation/receipt into checkout slice #1686
Peregrine implementation/receipt into checkout slice #1686
Conversation
|
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.
Love to see stuff like this. Two very minor things then 👍
<Memo(ConnectFunction)> | ||
<Memo(ConnectFunction)> | ||
<Memo(ConnectFunction)> | ||
<Memo(ConnectFunction)> |
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.
Feels nitpicky but snapshots like this aren't very useful, lol. Maybe if we put the number in the test name? "...wraps children with all six context providers" ?
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.
Yea it's not helpful. The only reason this is changing is because feature branch was broken but your complaint, at it's core, is very relevant. We should delete this or assert on the number of contexts being provided or something...
|
||
const classes = mergeClasses(defaultClasses, props.classes); | ||
|
||
useEffect(() => reset, [reset]); | ||
// When the drawer is closed reset the state of the receipt. We use a ref | ||
// because drawer can change if the mask is clicked. Mask updates drawer. |
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.
Just for my own education, what's the benefit of using useRef
over useState
here?
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.
I don't want to trigger a re-render.
@supernova-at addressed feedback -- going to wait until the feature branch is merged and then change this base, just FYI. |
b5709dd
to
352f925
Compare
352f925
to
40ab163
Compare
@sirugh Chrome desktop view, clear browser cache, Access Venia > Add product to cart and try closing Shopping cart by click X icon. Icon looks dead. |
Spoke with @dpatil-magento and the issue he saw is unrelated. |
Description
The
checkoutReceipt
slice doesn't really need to exist separate fromcheckout
.Related Issue
Closes #1685 .
Verification Steps
Screenshots / Screen Captures (if appropriate)
Checklist