-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[TM] add spec for HeadlessJsTaskSupport #24907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -261,16 +262,22 @@ const AppRegistry = { | |||
const taskProvider = taskProviders.get(taskKey); | |||
if (!taskProvider) { | |||
console.warn(`No task registered for key ${taskKey}`); | |||
NativeModules.HeadlessJsTaskSupport.notifyTaskFinished(taskId); | |||
if (NativeHeadlessJsTaskSupport) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these ifs necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flow complains if I don’t. Android only lib. I could attempt to make less of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fkgozali has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @ericlewis in 56c3852. When will my fix make it into a release? | Upcoming Releases |
Summary: part of facebook#24875 ## Changelog [General] [Added] - add TM spec for HeadlessJsTaskSupport Pull Request resolved: facebook#24907 Reviewed By: RSNara Differential Revision: D15425720 Pulled By: fkgozali fbshipit-source-id: 2e904f265a68066918bae4f6f95494ad77654598
Summary
part of #24875
Changelog
[General] [Added] - add TM spec for HeadlessJsTaskSupport
Test Plan
Flow passes