Unstable cart line item IDs clarification #1498
rbarreca
started this conversation in
Feedback: Extensions APIs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a checkout UI extension that updates (and sometimes removes) multiple cart line items. I see in the source code, that cart line item IDs are unstable—they may change after any update to any cart line item occurs. I'm looping through multiple lines and updating them in sequence (without reconsulting useCartLines()) and it's working so far in testing, but am I reading that "unstable" bit right and I should figure out how to refresh useCartLines() after every single applyCartLinesChange() I do?
Beta Was this translation helpful? Give feedback.
All reactions