mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
refactor: version 2.0 (React)
This commit is contained in:
parent
7dad7d810a
commit
950f72d4e8
356 changed files with 7901 additions and 29547 deletions
8
packages/renderer/src/hooks/useUser.ts
Normal file
8
packages/renderer/src/hooks/useUser.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { fetchUserAccount } from '@/api/user'
|
||||
import { UserApiNames } from '@/api/user'
|
||||
|
||||
export default function useUser() {
|
||||
return useQuery(UserApiNames.FETCH_USER_ACCOUNT, fetchUserAccount, {
|
||||
refetchOnWindowFocus: true,
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue