dillon1000/react
Commit
Browse files fix renderToString fails with array type children when react-dom/server render (#10221)
* fix(*): fix renderToString fails with array type children when react-dom/server render * Add an integration test that verify renderToString with array type children * Add integration test to renderToString with array type child * Update integration test to renderToString with array type child * fix renderToString fails with array type children when react-dom/server render * Update integration test to renderToString with array type child * Add to iterate that are not arrays * Add the validation react element * Improve an integration test of server renderToString with array type * prettier * prettier * Make SSR can handle a single array element and nested array * prettier * Change integeration test description * modified: src/renderers/dom/ReactDOMNodeStreamRenderer.js * Make invariants consistent * Gate outdated test itself by feature flag * Change test to make sense both with old and new code * Test more cases
Changed paths6 files
First-parent comparisonsrc/renderers/__tests__/ReactComponent-test.js ModifiedM src/renderers/dom/ReactDOMNodeStreamRenderer.js ModifiedM src/renderers/dom/ReactDOMStringRenderer.js ModifiedM src/renderers/dom/shared/__tests__/ReactDOMServerIntegration-test.js ModifiedM src/renderers/dom/shared/__tests__/ReactServerRendering-test.js ModifiedM src/renderers/shared/server/ReactPartialRenderer.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…