const [menuState,setMenuState] = useState(false)
const getMenuState = useSelector((state) => state.menu.menuState);
useEffect(()=>
setMenuState(getMenuState)
,[getMenuState]);
const actionCreator = useAction(changeState,{menuState:!menuState},menuState);
useCallback((elem)=>{
actionCreator()
},[actionCreator])
const actionCreator = useAction(changeState,{menuState:!menuState},menuState);
const date = new Date();
date.setHours(0,0,0,0);
const tasks = await TaskModel.find({
userId: `${req.user.id}`,
time: { $eq: dates },
}).exec();