Skip to content

Commit

Permalink
Run prettier after update to 1.2 in master
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Apr 20, 2017
1 parent b4d77b9 commit 28bc886
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/renderers/dom/fiber/ReactDOMFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ function renderSubtreeIntoContainer(
container.removeChild(container.lastChild);
}
const newRoot = DOMRenderer.createContainer(container);
root = (container._reactRootContainer = newRoot);
root = container._reactRootContainer = newRoot;
// Initial mount should not be batched.
DOMRenderer.unbatchedUpdates(() => {
DOMRenderer.updateContainer(children, newRoot, parentComponent, callback);
Expand Down
9 changes: 2 additions & 7 deletions src/renderers/shared/fiber/ReactFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@ var {

var {NoWork} = require('ReactPriorityLevel');

var {
NoContext,
AsyncUpdates,
} = require('ReactTypeOfInternalContext');
var {NoContext, AsyncUpdates} = require('ReactTypeOfInternalContext');

var {
NoEffect,
} = require('ReactTypeOfSideEffect');
var {NoEffect} = require('ReactTypeOfSideEffect');

var {cloneUpdateQueue} = require('ReactFiberUpdateQueue');

Expand Down
4 changes: 1 addition & 3 deletions src/renderers/shared/fiber/ReactFiberClassComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
import type {Fiber} from 'ReactFiber';
import type {PriorityLevel} from 'ReactPriorityLevel';

var {
Update,
} = require('ReactTypeOfSideEffect');
var {Update} = require('ReactTypeOfSideEffect');

var {
cacheContext,
Expand Down
7 changes: 3 additions & 4 deletions src/renderers/shared/fiber/ReactFiberReconciler.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import type {ReactNodeList} from 'ReactTypes';

var ReactFeatureFlags = require('ReactFeatureFlags');

var {
addTopLevelUpdate,
} = require('ReactFiberUpdateQueue');
var {addTopLevelUpdate} = require('ReactFiberUpdateQueue');

var {
findCurrentUnmaskedContext,
Expand Down Expand Up @@ -186,7 +184,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
// Check if the top-level element is an async wrapper component. If so, treat
// updates to the root as async. This is a bit weird but lets us avoid a separate
// `renderAsync` API.
const forceAsync = ReactFeatureFlags.enableAsyncSubtreeAPI &&
const forceAsync =
ReactFeatureFlags.enableAsyncSubtreeAPI &&
element != null &&
element.type != null &&
(element.type: any).unstable_asyncUpdates === true;
Expand Down
4 changes: 1 addition & 3 deletions src/renderers/shared/fiber/ReactFiberScheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ var {
OffscreenPriority,
} = require('ReactPriorityLevel');

var {
AsyncUpdates,
} = require('ReactTypeOfInternalContext');
var {AsyncUpdates} = require('ReactTypeOfInternalContext');

var {
NoEffect,
Expand Down

0 comments on commit 28bc886

Please sign in to comment.