Skip to content

Conversation

JaJuMa
Copy link
Contributor

@JaJuMa JaJuMa commented Oct 13, 2025

Reload customer wishlist after page restore from BFcache

@JaJuMa JaJuMa requested a review from a team as a code owner October 13, 2025 13:08
@fballiano
Copy link

@rhoerr do you think this is necessary?

@rhoerr
Copy link
Contributor

rhoerr commented Oct 14, 2025

Yeah. Luma theme shows wishlist count from CustomerData, which could become stale.

Does this issue apply to Hyva? I can't recall offhand how it handles wishlist data and button.

@JaJuMa
Copy link
Contributor Author

JaJuMa commented Oct 14, 2025

@rhoerr
This issue only occurs on the Luma theme.
On the Hyvä theme, no fix is required because the latest customer data is automatically refreshed from the browser storage after the page is restored from the back/forward cache (bfcache) via this event:

window.dispatchEvent(new CustomEvent('reload-customer-section-data'));

Copy link
Contributor

@rhoerr rhoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@rhoerr rhoerr merged commit bdd652c into mage-os:main Oct 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants