mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Run prettier
This commit is contained in:
@@ -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.',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user