-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MC-36096: [Cloud] Local cache storage is not retained for the expecte…
…d period.
- Loading branch information
1 parent
2aaa969
commit 5983e17
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5983e17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit leads to similar issues as described in #24847
Other modules depending on
customer-data
may use the module before it is initialized in'Magento_Customer/js/customer-data': function (settings) {
, hencestorage
is undefined, which was not the case before this commit. This especially occurs if bundeling techniques are used, werex-magento-init
scipts are evaluated too late.In this concrete case it leads to an error in checkout page:
This component calls
checkoutData.getValidatedEmailValue()
which in turn usescustomer-data
. In this stack later onupdate
is called incustomer-data
, which tries to callstorage.set(sectionName, sectionData);
. However, as described,storage
is not set yet.5983e17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HenKun basically you need to execute the
getInitCustomerData
method, similar tomagento2/app/code/Magento/Checkout/view/frontend/web/js/empty-cart.js
Lines 12 to 16 in 4d24466
And the listed issue will not appear
But! I think that's not a good solution.
I created an issue for fixing such behavior #31920