mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-27 18:52:38 +01:00
Fix build
This commit is contained in:
1 parent
e954d0d7bc
commit
9b66a1d1a8
9 files changed
+54
-37
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import { listen } from '@tauri-apps/api/event';
|
||||
import { appWindow } from '@tauri-apps/api/window';
|
||||
import { useEffect } from 'react';
|
||||
import { debounce } from '../lib/debounce';
|
||||
@@ -27,6 +28,13 @@ export function useTauriListeners() {
|
||||
else unsubFns.push(unsub);
|
||||
});
|
||||
|
||||
listen('refresh', () => {
|
||||
location.reload();
|
||||
}).then((unsub) => {
|
||||
if (unmounted) unsub();
|
||||
else unsubFns.push(unsub);
|
||||
});
|
||||
|
||||
appWindow
|
||||
.listen(
|
||||
'updated_request',
|
||||
|
||||
Reference in new issue
Block a user