Run prettier

This commit is contained in:
Andrew Clark
2017-04-20 11:37:18 -07:00
parent 98e86c791f
commit 6cb2e5533e
3 changed files with 14 additions and 5 deletions
+11 -2
View File
@@ -410,7 +410,12 @@ function renderSubtreeIntoContainer(
});
} else {
if (async) {
DOMRenderer.updateAsyncContainer(children, root, parentComponent, callback);
DOMRenderer.updateAsyncContainer(
children,
root,
parentComponent,
callback,
);
} else {
DOMRenderer.updateContainer(children, root, parentComponent, callback);
}
@@ -514,7 +519,11 @@ var ReactDOM = {
);
},
unstable_asyncRender: (null : ?(element: ReactElement<any>, container: DOMContainerElement, callback: ?Function) => *),
unstable_asyncRender: (null: ?(
element: ReactElement<any>,
container: DOMContainerElement,
callback: ?Function,
) => *),
unmountComponentAtNode(container: DOMContainerElement) {
invariant(
@@ -115,7 +115,7 @@ describe('ReactDOMFiberAsync', () => {
expect(container.textContent).toEqual('0');
jest.runAllTimers();
expect(container.textContent).toEqual('1');
})
});
});
}
});
@@ -213,8 +213,8 @@ module.exports = function<T, P, I, TI, PI, C, CX, PL>(
// TODO: Make messages more user-friendly?
if (__DEV__) {
warning(
!async || (container.current.contextTag & AsyncUpdates),
'Attempted to schedule an asynchronous update on a sync container.'
!async || container.current.contextTag & AsyncUpdates,
'Attempted to schedule an asynchronous update on a sync container.',
);
}