Describe the bug
By dynamically changing the persistKey on the OrderStorage, the minicart URL remains unchanged.
I noticed that this useEffect does not have persistKey as a dependency.
|
useEffect(() => { |
|
const orderId = localStorage.getItem(persistKey) |
Describe the bug
By dynamically changing the
persistKeyon theOrderStorage, the minicart URL remains unchanged.I noticed that this
useEffectdoes not havepersistKeyas a dependency.commercelayer-react-components/packages/react-components/src/components/orders/HostedCart.tsx
Lines 214 to 215 in bb7cdab