Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang committed Nov 15, 2023
1 parent 5039667 commit df3a636
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/useUserData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { fetchData } from '@/utils/utils';
import { QueriedUserData } from 'bookem-shared/src/types/database';
import { useEffect, useState } from 'react';

/**
* Custom hook to fetch user data and return
* @returns
*/
export const useUserData = () => {
const [userData, setUserData] = useState<QueriedUserData | null>(null);

Expand Down

0 comments on commit df3a636

Please sign in to comment.