mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix areHookInputsEqual method warning params order (#15345)
* Fix areHookInputsEqual method warning params order * FIX areHookInputsEqual test
This commit is contained in:
+1
-1
@@ -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',
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user