🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { useGlobalStore } from '@/store/global';
import { systemStatusSelectors } from '@/store/global/selectors';
import { useHomeStore } from '@/store/home';
import { useUserStore } from '@/store/user';
import { authSelectors } from '@/store/user/selectors';
export const useSyncRecents = (): void => {
const useFetchRecents = useHomeStore((s) => s.useFetchRecents);
const isLogin = useUserStore(authSelectors.isLogin);
const recentPageSize = useGlobalStore(systemStatusSelectors.recentPageSize);
useFetchRecents(isLogin, recentPageSize);
};