mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-23 18:01:08 +01:00
Fix build
This commit is contained in:
@@ -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