Skip to content

Commit

Permalink
update the formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
simbathesailor committed Jul 3, 2020
1 parent 9756a59 commit b84dc77
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/useWhatChanged.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ function useWhatChanged(
}, [dependencyRef, isDependencyArr]);

function postConsole() {
console.log('');
console.log('\n');
console.log(
`%c END `,
`%c///// END /////`,
`background: ${backgroundColorRef.current}; color: white; font-size: 10px`,
'\n'
);
console.log('');
console.log('');
console.log('\n');
console.log('\n');
}
function logBanners({
isFirstMount,
Expand All @@ -104,11 +104,11 @@ function useWhatChanged(
}) {
if (isDevelopment) {
console.log(
`%c START `,
`%c///// START /////`,
`background: ${backgroundColorRef.current}; color: white; font-size: 10px`,
'\n'
);
console.log('');
console.log('\n');
console.log(
`%c ${whatChangedHookCountRef.current} ${suffix || ''}`,
`background: ${backgroundColorRef.current}; color: white; font-size: 10px`,
Expand Down Expand Up @@ -139,7 +139,7 @@ function useWhatChanged(
let changed = false;
const whatChanged = dependency
? dependency.reduce((acc, dep, index) => {
if (dependencyRef.current && (dep !== dependencyRef.current[index])) {
if (dependencyRef.current && dep !== dependencyRef.current[index]) {
const oldValue = dependencyRef.current[index];
dependencyRef.current[index] = dep;
if (dependencyNames && stringSplitted) {
Expand Down

0 comments on commit b84dc77

Please sign in to comment.