client: fix get collected wikis

pull/82/head
fantasticit 2022-06-14 22:28:56 +08:00
parent 0630870d0a
commit ae1d32931c
2 changed files with 0 additions and 5 deletions

View File

@ -31,7 +31,6 @@ export const getCollectedWikis = (cookie = null): Promise<IWikiWithIsMember[]> =
export const useCollectedWikis = () => {
const { data, error, isLoading, refetch } = useQuery(CollectorApiDefinition.wikis.client(), getCollectedWikis, {
staleTime: 500,
enabled: false,
});
useEffect(() => {

View File

@ -120,10 +120,6 @@ const Page: NextPage = () => {
const [visible, toggleVisible] = useToggle(false);
const { data: staredWikis, loading, error, refresh } = useCollectedWikis();
useEffect(() => {
refresh();
}, [refresh]);
return (
<SingleColumnLayout>
<Seo title="主页" />