We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e32285 commit 8778b17Copy full SHA for 8778b17
src/content/pages/ranking/utils.ts
@@ -63,11 +63,7 @@ export function getUsername(
63
64
/** 当前行发生改变是触发事件
65
*/
66
-export const useRowChange = (
67
- row: HTMLElement,
68
- onChange: () => void,
69
- beta?: boolean
70
-): void => {
+export const useRowChange = (row: HTMLElement, onChange: () => void): void => {
71
useEffect(() => {
72
const handleChange = debounce(() => {
73
onChange()
@@ -94,7 +90,7 @@ export const useUser = (
94
90
const handleChange = useEvent(() => {
95
91
setState(getUsername(hasMyRank, index, row, beta))
96
92
})
97
- useRowChange(row, handleChange, beta)
93
+ useRowChange(row, handleChange)
98
return state
99
}
100
0 commit comments