Move hook call

This commit is contained in:
Jackson Harper
2024-08-21 17:49:19 +08:00
parent 68e6533430
commit d202b7bf8d

View File

@ -4,8 +4,8 @@ import { logoutMutation } from './networking/mutations/logoutMutation'
import { useCallback } from 'react'
export const useLogout = () => {
const queryClient = useQueryClient()
const logout = useCallback(async () => {
const queryClient = useQueryClient()
await logoutMutation()
try {
const result = await logoutMutation()