Skip to content

Commit

Permalink
feat: #276 - 메타 데이터를 가져올 때 api 중복 호출 방지
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed Dec 4, 2023
1 parent 1071af4 commit 5cf6e2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/common/LinkList/hooks/useGetMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const useGetMeta = ({ getValues, setValue, modalClose }: UseGetMetaProps) => {
}

const handleGetMeta = async ({ url }: FetchGetMetaProps) => {
if (isMetaLoading) return

if (getIsValidUrl()) {
setIsMetaLoading(true)
const { data, error } = await fetchGetMeta({
Expand Down

0 comments on commit 5cf6e2a

Please sign in to comment.