-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Fix the website build #12479
Fix the website build #12479
Conversation
118e883 broke autodoc generation because autodoc isn't smart enough to understand some patterns. I'm working around it by using the same trick as this file was using previously: reassigning the class variable.
9af3cc6
to
fa62917
Compare
@@ -26,9 +26,6 @@ const invariant = require('fbjs/lib/invariant'); | |||
* AppState is frequently used to determine the intent and proper behavior when | |||
* handling push notifications. | |||
* | |||
* This module depends on the native RCTAppState module. If you don't include it, |
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.
Removing this from here since I don't want this to appear in open source documentation.
@@ -90,11 +87,12 @@ class AppState extends NativeEventEmitter { | |||
|
|||
_eventHandlers: Object; | |||
currentState: ?string; | |||
isAvailable: boolean = true; | |||
isAvailable: boolean; |
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.
Autodoc doesn't understand property initializers.
@@ -213,10 +211,13 @@ class MissingNativeAppStateShim extends EventEmitter { | |||
} | |||
} | |||
|
|||
// Guard against missing native module by throwing on first method call. | |||
// Keep the API the same so Flow doesn't complain. | |||
const appState = RCTAppState |
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.
Autodoc doesn't understand indirection via a variable.
Note that this will still fail CI because of the other problems mentioned in #12450. |
Flow in e2e is still failing: |
See above comment:
I'm only fixing the part I previously touched, happy to have somebody else fix the Flow part (since I don't work on FlatList). |
Indeed someone else broke it
Never mind then :)
…On Tue, 21 Feb 2017 at 13:39, Dan Abramov ***@***.***> wrote:
Flow in e2e is still failing:
See above comment:
Note that this will still fail CI because of the other problems mentioned
in #12450 <#12450>.
I'm only fixing the part I previously touched, happy to have somebody else
fix the Flow part (since I don't work on FlatList).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12479 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACBdWOBTCqPamdDbpJgs3lTb_Qzc1SBGks5reukXgaJpZM4MGh1o>
.
|
@gaearon has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: 118e883 broke autodoc generation because autodoc isn't smart enough to understand some patterns. I'm working around it by using the same trick as this file was using previously: reassigning the class variable. Similarly, using a property initializer produces bad output so I had to remove it: <img width="146" alt="screen shot 2017-02-20 at 19 00 36" src="https://cloud.githubusercontent.com/assets/810438/23138561/09ebb476-f7a0-11e6-8fad-92c5a01503c3.png"> cc ericnakagawa mkonicek for review Closes facebook#12479 Differential Revision: D4591285 Pulled By: gaearon fbshipit-source-id: 5884620a08874298b1b2c810e8fb769eba4e1199
Summary: 118e883 broke autodoc generation because autodoc isn't smart enough to understand some patterns. I'm working around it by using the same trick as this file was using previously: reassigning the class variable. Similarly, using a property initializer produces bad output so I had to remove it: <img width="146" alt="screen shot 2017-02-20 at 19 00 36" src="https://cloud.githubusercontent.com/assets/810438/23138561/09ebb476-f7a0-11e6-8fad-92c5a01503c3.png"> cc ericnakagawa mkonicek for review Closes facebook#12479 Differential Revision: D4591285 Pulled By: gaearon fbshipit-source-id: 5884620a08874298b1b2c810e8fb769eba4e1199
Summary: 118e883 broke autodoc generation because autodoc isn't smart enough to understand some patterns. I'm working around it by using the same trick as this file was using previously: reassigning the class variable. Similarly, using a property initializer produces bad output so I had to remove it: <img width="146" alt="screen shot 2017-02-20 at 19 00 36" src="https://cloud.githubusercontent.com/assets/810438/23138561/09ebb476-f7a0-11e6-8fad-92c5a01503c3.png"> cc ericnakagawa mkonicek for review Closes facebook#12479 Differential Revision: D4591285 Pulled By: gaearon fbshipit-source-id: 5884620a08874298b1b2c810e8fb769eba4e1199
118e883 broke autodoc generation because autodoc isn't smart enough to understand some patterns.
I'm working around it by using the same trick as this file was using previously: reassigning the class variable.
Similarly, using a property initializer produces bad output so I had to remove it:
cc @ericnakagawa @mkonicek for review