Skip to content

Commit 35b888d

Browse files
Kathy Grayfacebook-github-bot
authored andcommitted
Fix making loadScriptFromString always synchronous
Reviewed By: javache Differential Revision: D5129620 fbshipit-source-id: a0ad5e2704fc38f4cdfe29187a2b59ba4b0ff61b
1 parent 9f81baa commit 35b888d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/cxxreact/Instance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void Instance::loadScriptFromString(std::unique_ptr<const JSBigString> string,
8080
if (loadSynchronously) {
8181
loadApplicationSync(nullptr, std::move(string), std::move(sourceURL));
8282
} else {
83-
loadApplicationSync(nullptr, std::move(string), std::move(sourceURL));
83+
loadApplication(nullptr, std::move(string), std::move(sourceURL));
8484
}
8585
}
8686

0 commit comments

Comments
 (0)