Skip to content

Commit

Permalink
Remove size methods and add FlowFixMe instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jplhomer committed May 31, 2022
1 parent 2024c88 commit fff3966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions packages/react-dom/src/server/ReactDOMFizzServerBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ function renderToReadableStream(
abort(request);
},
},
{
highWaterMark: 0,
size: () => 1,
},
// $FlowFixMe size() methods are not allowed on byte streams.
{highWaterMark: 0},
): any);
// TODO: Move to sub-classing ReadableStream.
stream.allReady = allReady;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ function renderToReadableStream(
},
cancel(reason) {},
},
{
highWaterMark: 0,
size: () => 1,
},
// $FlowFixMe size() methods are not allowed on byte streams.
{highWaterMark: 0},
);
return stream;
}
Expand Down

0 comments on commit fff3966

Please sign in to comment.