Run prettier
Andrew Clark committed
Apr 17, 2017 at 14:59 UTC
ada638a0644299097ee4423cfbe2630df03faa2f
3 files changed
+14
-5
src/renderers/dom/fiber/ReactDOMFiber.js
+11
-2
@@ -410,7 +410,12 @@ function renderSubtreeIntoContainer(
410
});
411
} else {
412
if (async) {
413
- DOMRenderer.updateAsyncContainer(children, root, parentComponent, callback);
413
+ DOMRenderer.updateAsyncContainer(
414
+ children,
415
+ root,
416
+ parentComponent,
417
+ callback,
418
+ );
419
} else {
420
DOMRenderer.updateContainer(children, root, parentComponent, callback);
421
}
@@ -514,7 +519,11 @@ var ReactDOM = {
519
);
520
},
521
517
- unstable_asyncRender: (null : ?(element: ReactElement<any>, container: DOMContainerElement, callback: ?Function) => *),
522
+ unstable_asyncRender: (null: ?(
523
+ element: ReactElement<any>,
524
+ container: DOMContainerElement,
525
+ callback: ?Function,
526
+ ) => *),
527
528
unmountComponentAtNode(container: DOMContainerElement) {
529
invariant(
src/renderers/dom/fiber/__tests__/ReactDOMFiberAsync-test.js
+1
-1
@@ -115,7 +115,7 @@ describe('ReactDOMFiberAsync', () => {
115
expect(container.textContent).toEqual('0');
116
jest.runAllTimers();
117
expect(container.textContent).toEqual('1');
118
- })
118
+ });
119
});
120
}
121
});
src/renderers/shared/fiber/ReactFiberReconciler.js
+2
-2
@@ -213,8 +213,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
213
// TODO: Make messages more user-friendly?
214
if (__DEV__) {
215
warning(
216
- !async || (container.current.contextTag & AsyncUpdates),
217
- 'Attempted to schedule an asynchronous update on a sync container.'
216
+ !async || container.current.contextTag & AsyncUpdates,
217
+ 'Attempted to schedule an asynchronous update on a sync container.',
218
);
219
}
220