Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Sep 30, 2022
1 parent 5ebdce8 commit 1ccdb00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ type PreloadQualifyingProps = {
[string]: mixed,
};

// This function is called in complete work and we should always have a currentDocument set
// This function is called in begin work and we should always have a currentDocument set
export function getResource(
type: string,
pendingProps: Props,
Expand Down
3 changes: 1 addition & 2 deletions packages/react-dom-bindings/src/client/ReactDOMHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,7 @@ function getNextHydratable(node) {
continue;
}
break;
}
if (nodeType === TEXT_NODE) {
} else if (nodeType === TEXT_NODE) {
break;
}
} else {
Expand Down

0 comments on commit 1ccdb00

Please sign in to comment.