Refresh node load in location picker without page reload
CI / Backend (build + test) (push) Failing after 1m20s
CI / Frontend (lint + typecheck + build) (push) Successful in 32s

Invalidate available-inbounds when the create dialog opens, after a
config is created or revoked, and on realtime config status changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mrleo1nidandClaude Opus 5.5 committed 2026-10-06 20:02:11 +03:00
1 parent bb5e59904f
commit ddd8a36c64
3 files changed
+13 -1

No files matched your search

@@ -44,6 +44,8 @@ export function RealtimeProvider({ children }: { children: React.ReactNode }) {
? { ...prev, configs: prev.configs.map((c) => (c.id === payload.configId ? { ...c, status: payload.status } : c)) }
: prev,
)
// Загрузка нод считается по Active-конфигам — смена статуса её меняет.
void queryClient.invalidateQueries({ queryKey: ['available-inbounds'] })
}
const onUserActivated = (_payload: UserActivated) => {