Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9eb1ad0

Browse files
lynnshaoyufacebook-github-bot
authored andcommitted
fix relay reader module import bug
Reviewed By: tyao1Differential Revision: D73548026fbshipit-source-id: b3b82b839d064824e70224332a964bb874e81209
1 parent07e662e commit9eb1ad0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎packages/relay-runtime/store/RelayReader.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,10 +1368,15 @@ class RelayReader {
13681368
// Determine the component module from the store: if the field is missing
13691369
// it means we don't know what component to render the match with.
13701370
constcomponentKey=getModuleComponentKey(moduleImport.documentName);
1371+
constrelayStoreComponent=RelayModernRecord.getValue(
1372+
record,
1373+
componentKey,
1374+
);
13711375
// componentModuleProvider is used by Client 3D for read time resolvers.
13721376
constcomponent=
1373-
RelayModernRecord.getValue(record,componentKey)??
1374-
moduleImport.componentModuleProvider;
1377+
relayStoreComponent!==undefined
1378+
?relayStoreComponent
1379+
:moduleImport.componentModuleProvider;
13751380
if(component==null){
13761381
if(component===undefined){
13771382
this._markDataAsMissing('<module-import>');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp