feat: refactor the cache

This commit is contained in:
zerosoul
2022-03-04 10:15:30 +08:00
parent b6b0a0c5ef
commit acd007fb71
28 changed files with 622 additions and 341 deletions
+2 -10
View File
@@ -19,22 +19,14 @@ export default function HomePage() {
const dispatch = useDispatch();
const {
ui: { menuExpand, setting, channelSetting },
authData: { usersVersion, afterMid },
visitMark: { usersVersion, afterMid },
} = useSelector((store) => {
return {
authData: store.authData,
visitMark: store.visitMark,
ui: store.ui,
contacts: store.contacts,
};
});
const { data, loading, error, success } = usePreload();
// useEffect(() => {
// if (authData) {
// dispatch(setAuthData(data));
// }
// }, [authData]);
const toggleExpand = () => {
dispatch(toggleMenuExpand());
};