Skip to content

Commit 372c4f9

Browse files
committed
feat: add id param to queryKey array
1 parent 6aad532 commit 372c4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/Queries/shop/useSwagList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const fetchSingleSwag = async (id) => {
3333

3434
const useSingleSwag = (id) =>
3535
useQuery({
36-
queryKey: ["single swag"],
36+
queryKey: ["singleSwag", id],
3737
queryFn: () => fetchSingleSwag(id),
3838
refetchOnWindowFocus: false,
3939
});

0 commit comments

Comments
 (0)