Skip to content

Commit a00d190

Browse files
committed
Implement HostSingleton Fiber type
1 parent 796d318 commit a00d190

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1809
-130
lines changed

packages/react-art/src/ReactARTHostConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ export * from 'react-reconciler/src/ReactFiberHostConfigWithNoHydration';
243243
export * from 'react-reconciler/src/ReactFiberHostConfigWithNoScopes';
244244
export * from 'react-reconciler/src/ReactFiberHostConfigWithNoTestSelectors';
245245
export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMicrotasks';
246+
export * from 'react-reconciler/src/ReactFiberHostConfigWithNoResources';
246247

247248
export function appendInitialChild(parentInstance, child) {
248249
if (typeof child === 'string') {

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,6 @@ describe('ReactDOMFizzServer', () => {
980980
});
981981

982982
// @gate enableSuspenseList
983-
984983
it('shows inserted items before pending in a SuspenseList as fallbacks while hydrating', async () => {
985984
const ref = React.createRef();
986985

@@ -4262,13 +4261,9 @@ describe('ReactDOMFizzServer', () => {
42624261
},
42634262
);
42644263
expect(() => {
4265-
try {
4266-
expect(() => {
4267-
expect(Scheduler).toFlushWithoutYielding();
4268-
}).toThrow('Invalid insertion of HTML node in #document node.');
4269-
} catch (e) {
4270-
console.log('e', e);
4271-
}
4264+
expect(() => {
4265+
expect(Scheduler).toFlushWithoutYielding();
4266+
}).toThrow('Invalid insertion of TITLE node in #document node.');
42724267
}).toErrorDev(
42734268
[
42744269
'Warning: Expected server HTML to contain a matching <title> in <#document>.',
@@ -4281,7 +4276,12 @@ describe('ReactDOMFizzServer', () => {
42814276
'Hydration failed because the initial UI does not match what was rendered on the server.',
42824277
'There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering.',
42834278
]);
4284-
expect(getVisibleChildren(document)).toEqual();
4279+
expect(getVisibleChildren(document)).toEqual(
4280+
<html data-foo="foo">
4281+
<head data-bar="bar" />
4282+
<body />
4283+
</html>,
4284+
);
42854285
expect(() => {
42864286
expect(Scheduler).toFlushWithoutYielding();
42874287
}).toThrow('The node to be removed is not a child of this node.');

0 commit comments

Comments
 (0)