-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[윤혜림] Sprint6 #226
The head ref may contain hidden characters: "React-\uC724\uD61C\uB9BC-sprint6"
[윤혜림] Sprint6 #226
Changes from all commits
26d848a
da614d8
689f04c
0dabcf3
bd7a79c
569ddf5
6b0d5dd
47339b5
4d27eb6
3a23d85
c05eeb2
a72aa84
ae8f205
d53be5f
7e72124
964c085
c3c744e
b784b29
ae279bd
926ac11
5917f9f
f229a5e
702adcc
27e822d
e9629cd
e12158e
b5155eb
77c1040
0bad4bc
3b75e79
eee601f
8d554b0
6767f07
923a08e
870337e
87ba748
ef8c2aa
6d09f18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
async function productData({ orderBy, pageSize, search, page }) { | ||
async function getProductData({ orderBy, pageSize, search, page }) { | ||
const query = `page=${page}&orderBy=${orderBy}&pageSize=${pageSize}&keyword=${search}`; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 함수이름 개편 좋습니다 👍🏻 |
||
const response = await fetch( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. query string은 URL Search Params를 사용해보면 어떨까요? |
||
`https://panda-market-api.vercel.app/products?${query}` | ||
|
@@ -11,4 +11,4 @@ async function productData({ orderBy, pageSize, search, page }) { | |
return body; | ||
} | ||
|
||
export default productData; | ||
export default getProductData; |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 👍🏻