Skip to content

Commit 9d1fe44

Browse files
lynnshaoyufacebook-github-bot
authored andcommitted
load component module earlier into record store 1/2
Reviewed By: tyao1 Differential Revision: D73223321 fbshipit-source-id: 45f4e0b46712b3553c3a7c00f13a3c9cf284ba24
1 parent 677c1e3 commit 9d1fe44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/relay-runtime/store/RelayReader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,8 @@ class RelayReader {
13701370
const componentKey = getModuleComponentKey(moduleImport.documentName);
13711371
// componentModuleProvider is used by Client 3D for read time resolvers.
13721372
const component =
1373-
moduleImport.componentModuleProvider ??
1374-
RelayModernRecord.getValue(record, componentKey);
1373+
RelayModernRecord.getValue(record, componentKey) ??
1374+
moduleImport.componentModuleProvider;
13751375
if (component == null) {
13761376
if (component === undefined) {
13771377
this._markDataAsMissing('<module-import>');

0 commit comments

Comments
 (0)