mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 01:08:28 +02:00
Switch to useMutation in some places
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useMutation } from './useMutation';
|
||||
import { useFastMutation } from './useFastMutation';
|
||||
import { SettingsTab } from '../components/Settings/Settings';
|
||||
import { trackEvent } from '../lib/analytics';
|
||||
import { invokeCmd } from '../lib/tauri';
|
||||
@@ -9,7 +9,7 @@ import { useActiveWorkspace } from './useActiveWorkspace';
|
||||
export function useOpenSettings(tab = SettingsTab.General) {
|
||||
const workspace = useActiveWorkspace();
|
||||
|
||||
return useMutation({
|
||||
return useFastMutation({
|
||||
mutationKey: ['open_settings'],
|
||||
mutationFn: async () => {
|
||||
if (workspace == null) return;
|
||||
|
||||
Reference in New Issue
Block a user