Show error toast in centralized way for query (#117)

This commit is contained in:
Will Chen
2025-05-08 22:32:50 -07:00
committed by GitHub
parent b6eeaab1bb
commit 8d61659c60
3 changed files with 33 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ export function useCurrentBranch(appId: number | null) {
return ipcClient.getCurrentBranch(appId);
},
enabled: appId !== null,
meta: { showErrorToast: false },
meta: { showErrorToast: true },
});
return {