mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
8 lines
198 B
TypeScript
8 lines
198 B
TypeScript
import { useQuery } from "blitz"
|
|
import getCurrentUser from "app/users/queries/getCurrentUser"
|
|
|
|
export const useCurrentUser = () => {
|
|
const [user] = useQuery(getCurrentUser, null)
|
|
return user
|
|
}
|