Skip to content

Commit 93e44a4

Browse files
chore: debug share missmatch
1 parent 314c475 commit 93e44a4

File tree

6 files changed

+191
-284
lines changed

6 files changed

+191
-284
lines changed

apps/3000-home/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

apps/3001-shop/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

apps/3002-checkout/next-env.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"build:website": "nx run website-new:build",
3939
"extract-i18n:website": "nx run website:extract-i18n",
4040
"sync:pullMFTypes": "concurrently \"node ./packages/enhanced/pullts.js\"",
41-
"app:next:dev": "nx run-many --target=serve --configuration=development -p 3000-home,3001-shop,3002-checkout",
41+
"app:next:dev": "NX_TUI=false nx run-many --target=serve --configuration=development -p 3000-home,3001-shop,3002-checkout",
4242
"app:next:build": "nx run-many --target=build --parallel=2 --configuration=production -p 3000-home,3001-shop,3002-checkout",
4343
"app:next:prod": "nx run-many --target=serve --configuration=production -p 3000-home,3001-shop,3002-checkout",
4444
"app:node:dev": "nx run-many --target=serve --parallel=10 --configuration=development -p node-host,node-local-remote,node-remote,node-dynamic-remote-new-version,node-dynamic-remote",

packages/enhanced/src/lib/sharing/ConsumeSharedPlugin.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,14 @@ class ConsumeSharedPlugin {
481481
}
482482
const { context, request, contextInfo } = resolveData;
483483

484-
const match = unresolvedConsumes.get(
485-
createLookupKeyForSharing(request, contextInfo.issuerLayer),
484+
const lookup = createLookupKeyForSharing(
485+
request,
486+
contextInfo.issuerLayer,
486487
);
487-
488+
const match = unresolvedConsumes.get(lookup);
489+
if (contextInfo.issuer.includes('StyleContext')) {
490+
debugger;
491+
}
488492
// First check direct match with original request
489493
if (match !== undefined) {
490494
// Use the bound function

0 commit comments

Comments
 (0)