Skip to content

Commit d5d8e6f

Browse files
ENGCOM-5457: fix customer data race condition when bundling is enabled #23099
- Merge Pull Request #23099 from davidverholen/magento2:bundling-customer-data-fix - Merged commits: 1. fe6ef1b
2 parents dc2e73a + fe6ef1b commit d5d8e6f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/code/Magento/Customer/view/frontend/web/js/customer-data.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ define([
1111
'underscore',
1212
'ko',
1313
'Magento_Customer/js/section-config',
14+
'mage/url',
1415
'mage/storage',
1516
'jquery/jquery-storageapi'
16-
], function ($, _, ko, sectionConfig) {
17+
], function ($, _, ko, sectionConfig, url) {
1718
'use strict';
1819

19-
var options,
20+
var options = {},
2021
storage,
2122
storageInvalidation,
2223
invalidateCacheBySessionTimeOut,
@@ -25,6 +26,9 @@ define([
2526
buffer,
2627
customerData;
2728

29+
url.setBaseUrl(window.BASE_URL);
30+
options.sectionLoadUrl = url.build('customer/section/load');
31+
2832
//TODO: remove global change, in this case made for initNamespaceStorage
2933
$.cookieStorage.setConf({
3034
path: '/',

0 commit comments

Comments
 (0)