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) |