mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-23 01:49:13 +01:00
Fix error handling
This commit is contained in:
@@ -13,8 +13,9 @@ import { keyValuesAtom } from './useKeyValue';
|
||||
|
||||
export function useSyncWorkspaceChildModels() {
|
||||
useEffect(() => {
|
||||
jotaiStore.sub(activeWorkspaceIdAtom, sync);
|
||||
const unsub = jotaiStore.sub(activeWorkspaceIdAtom, sync);
|
||||
sync().catch(console.error);
|
||||
return unsub;
|
||||
}, []);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user