feat: polish

This commit is contained in:
2024-01-18 07:37:40 +07:00
parent 47800bd2ff
commit d13e7b3ef6
15 changed files with 146 additions and 123 deletions

View File

@@ -15,12 +15,7 @@ export function OnboardingFinishScreen() {
const finish = async () => {
setLoading(true);
const queryCache = queryClient.getQueryCache();
const queryKeys = queryCache.getAll().map((cache) => cache.queryKey);
for (const key of queryKeys) {
await queryClient.refetchQueries({ queryKey: key });
}
await queryClient.refetchQueries({ queryKey: ["timeline-9999"] });
setLoading(false);
setOnboarding(false);