refactor: settings route (#1753)

* refactor: settings route
This commit is contained in:
Alex Christoffer Rasmussen
2025-09-03 11:20:03 -04:00
committed by Carlos Valente
parent eace97ec7a
commit f219ebb8f8
7 changed files with 78 additions and 102 deletions
+4
View File
@@ -11,6 +11,7 @@ import {
import { isProduction, websocketUrl } from '../../externals';
import {
APP_SETTINGS,
CLIENT_LIST,
CUSTOM_FIELDS,
PROJECT_DATA,
@@ -177,6 +178,9 @@ export const connectSocket = () => {
case RefetchKey.Translation:
ontimeQueryClient.invalidateQueries({ queryKey: TRANSLATION });
break;
case RefetchKey.Settings:
ontimeQueryClient.invalidateQueries({ queryKey: APP_SETTINGS });
break;
default: {
target satisfies never;
break;