dillon1000/react
Commit
Browse files fix(ServerRendering): execution should be sync
The documentation states that React.renderComponentToString 'uses a callback API to keep the API async', but the implementation is actually synchronous. In order to maintain this contract the callback should always be called asynchronously or be change to a synchronous API. As per the discussion of pull request 982, the API should be changed to a synchronous one.
Changed paths5 files
First-parent comparisonCONTRIBUTING.md ModifiedM src/core/__tests__/ReactRenderDocument-test.js ModifiedM src/core/__tests__/ReactTextComponent-test.js ModifiedM src/environment/ReactServerRendering.js ModifiedM src/environment/__tests__/ReactServerRendering-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…