Fix areHookInputsEqual method warning params order (#15345)

* Fix areHookInputsEqual method  warning params order

* FIX areHookInputsEqual test
This commit is contained in:
砖家
2019-04-08 17:14:42 +01:00
committed by Sunil Pai
parent 29fb5862fb
commit b4bc33a584
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -315,8 +315,8 @@ function areHookInputsEqual(
'Previous: %s\n' +
'Incoming: %s',
currentHookNameInDev,
`[${nextDeps.join(', ')}]`,
`[${prevDeps.join(', ')}]`,
`[${nextDeps.join(', ')}]`,
);
}
}
@@ -608,8 +608,8 @@ describe('ReactHooks', () => {
'Warning: The final argument passed to useLayoutEffect changed size ' +
'between renders. The order and size of this array must remain ' +
'constant.\n\n' +
'Previous: [A, B]\n' +
'Incoming: [A]\n',
'Previous: [A]\n' +
'Incoming: [A, B]\n',
]);
});