feat: polish

This commit is contained in:
2024-01-17 08:50:43 +07:00
parent 33dd8b1d8a
commit c29b4e173e
8 changed files with 60 additions and 49 deletions

View File

@@ -7,7 +7,6 @@ import { useSetAtom } from "jotai";
import { useState } from "react";
export function OnboardingFinishScreen() {
const ark = useArk();
const queryClient = useQueryClient();
const setOnboarding = useSetAtom(onboardingAtom);
@@ -19,10 +18,6 @@ export function OnboardingFinishScreen() {
const queryCache = queryClient.getQueryCache();
const queryKeys = queryCache.getAll().map((cache) => cache.queryKey);
await queryClient.refetchQueries({
queryKey: ["user", ark.account.pubkey],
});
for (const key of queryKeys) {
await queryClient.refetchQueries({ queryKey: key });
}