Skip to content

Commit

Permalink
lints and flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed May 31, 2022
1 parent b1420bb commit e68ac36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-server/src/ReactFizzServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ type Segment = {
// used to discern when text separator boundaries are needed
preEdge: SegmentEdge,
leadEdge: SegmentEdge,
trailEdge: SegmentEdge,
currentEdge: SegmentEdge,
postEdge: SegmentEdge,
};

Expand Down Expand Up @@ -1793,7 +1793,7 @@ function flushSegmentInline(

// We might have emitted Text or Nodes since the last segment to flush. set the value accordingly or
// retain the existing value if no Edges were emitted
let precedingEdge = segment.preEdge;
const precedingEdge = segment.preEdge;
lastText =
precedingEdge === TEXT_EDGE
? true
Expand All @@ -1808,7 +1808,7 @@ function flushSegmentInline(

// We might have emitted Text or Nodes following this segment. set the value accordingly or
// retain teh existing valeu if no Edges were emitted
let lastEdge = segment.currentEdge;
const lastEdge = segment.currentEdge;
lastText =
lastEdge === TEXT_EDGE ? true : lastEdge === NODE_EDGE ? false : lastText;
if (parentFlushed === false && lastText && segment.postEdge === TEXT_EDGE) {
Expand Down

0 comments on commit e68ac36

Please sign in to comment.