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 f646d5f commit 8cb5d40Copy full SHA for 8cb5d40
client/src/Hooks/useUpdaterSocket.hook.js
@@ -13,7 +13,7 @@ function useUpdaterSocket(updateData, auth) {
13
const { request } = useHttp()
14
15
/**дебонсированный обработчик входящего обновления */
16
- const debouncedUpdate = useDebouncedFunction(updateData, 200)
+ const debouncedUpdate = useDebouncedFunction(() => { if (auth.isAuthenticated) updateData() }, 200)
17
18
/**колбек для получения url сокета */
19
const getSocketUrl = useCallback(async () => {
0 commit comments