State has been updated but inside the callback I am getting the old value of component.
const [count, setCount] = useStateWithCallbackLazy(0);
const handleClick = () => {
setCount(count + 1, (currentCount) => {
console.log('current count value - ' + count);
});
};