Refresh node load in location picker without page reload
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:
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) => {
|
||||
|
||||
Reference in new issue
Block a user