Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Jan 17, 2019
1 parent ed34baf commit 04cb310
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-dom/src/server/ReactPartialRendererHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function areHookInputsEqual(
);
}
}
for (let i = 0; i < nextDeps.length; i++) {
for (let i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
if (is(nextDeps[i], prevDeps[i])) {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/ReactFiberHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function areHookInputsEqual(
);
}
}
for (let i = 0; i < nextDeps.length; i++) {
for (let i = 0; i < nextDeps.length && i < prevDeps.length; i++) {
if (is(nextDeps[i], prevDeps[i])) {
continue;
}
Expand Down

0 comments on commit 04cb310

Please sign in to comment.