More use effect effeciency.

This commit is contained in:
Lucid Kobold
2022-06-23 13:59:43 -05:00
parent 488f56354d
commit f808f6b250
4 changed files with 26 additions and 12 deletions

View File

@@ -43,7 +43,7 @@ const Calender = ({
console.warn("Invalid date format: ", newDate);
}
}
}, [dispatch, newDate]);
}, [currentSelectedDateStr, dispatch, newDate]);
useEffect(() => {
// console.info("Check to update date.");
@@ -151,7 +151,7 @@ const Calender = ({
id.length
? id
: format(toDateObj, "yyyyddLL") +
`/${sticker === null ? 0 : sticker}`
`/${sticker === null ? 0 : sticker}`
}
/>
);