mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
feat: cache mailbox list for 10 minutes and show progress on initial fetch
- Add 10-minute cache after fetching mailbox list from mail accounts - Display progress during initial mailbox retrieval - Prevent timeouts when handling large mailbox lists
This commit is contained in:
@@ -181,7 +181,7 @@ export function MailboxPopover() {
|
||||
|
||||
const { data: activeMailboxes = [], isLoading: activeIsLoading } = useQuery({
|
||||
queryKey: ['search-mailboxes', activeAccountId],
|
||||
queryFn: () => list_mailboxes(activeAccountId!, false),
|
||||
queryFn: async () => (await list_mailboxes(activeAccountId!, false)).mailboxes,
|
||||
enabled: !!activeAccountId,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user