Commit fe3ce3f
committed
fix(ui): avoid stale closure when clearing connectivity error
Always dispatch setConnectivityError(null) on successful API response
instead of conditionally checking connectivityError. This avoids stale
closure issues where the callback captures an outdated value.
References: #RI-77611 parent 610aa24 commit fe3ce3f
File tree
1 file changed
+4
-4
lines changed- redisinsight/ui/src/components/database-overview/hooks
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments