Skip to content

Changing persistKey on OrderStorage does not update the minicart #685

@marcomontalbano

Description

@marcomontalbano

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions