mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4741] [Bug]: Client page automatically refreshes after adding an account to a group #3283
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mifengwei on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4741
Describe the bug
客户端页面将账号添加到分组后会自动刷新没
How to reproduce the problem
Create a new group; on the client page, select the account(s) and then use the "Add to group" function.
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.0
Xray-core version
v26.5.9
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu24
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 1, 2026):
感谢您提交此 Bug 报告!
经代码分析,将账号添加到分组后,前端会调用
invalidateAll()使 React Query 缓存失效,进而触发客户端列表和入站数据的重新拉取。这会导致表格重新渲染,表现为:这属于 UI 状态管理上的已知缺陷,数据刷新后应保留当前页码、滚动位置等表格状态。
Thank you for filing this bug report!
Based on code analysis, after a successful "add to group" operation the frontend calls
invalidateAll(), which invalidates the React Query cache and triggers a full refetch of clients and inbounds data. This causes the table to re-render and typically results in:This is a UI state-management issue — table state (current page, scroll position, etc.) should be preserved after the data refetch.
Could you confirm whether you are experiencing a full browser page reload (browser tab shows a spinner / URL reloads) or just the table data re-rendering (the list refreshes in-place)? This will help narrow down the root cause.