Skip to content

Commit

Permalink
Type ReactCurrentOwner (#7648)
Browse files Browse the repository at this point in the history
Simpler than ReactOwner :)
(cherry picked from commit 2559030)
  • Loading branch information
vjeux authored and zpao committed Oct 4, 2016
1 parent 2c16a6b commit db985af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/isomorphic/classic/element/ReactCurrentOwner.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ReactCurrentOwner
* @flow
*/

'use strict';

import type { ReactInstance } from 'ReactInstanceType';

/**
* Keeps track of the current owner.
*
Expand All @@ -23,7 +26,7 @@ var ReactCurrentOwner = {
* @internal
* @type {ReactComponent}
*/
current: null,
current: (null: null | ReactInstance),

};

Expand Down
1 change: 1 addition & 0 deletions src/renderers/shared/stack/reconciler/ReactInstanceType.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ export type ReactInstance = {
_mountImage: any,
// __DEV__
_debugID: DebugID,
_warnedAboutRefsInRender: bool,
};

0 comments on commit db985af

Please sign in to comment.