mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Move hook call
This commit is contained in:
parent
68e6533430
commit
d202b7bf8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue