728x90
const keyword = new URLSearchParams(location.search).get("keyword");
const { data, isLoading, refetch } = useQuery<ISearchResults>(
["search", "results"],
() => multiSearch(keyword!, 1)
);
useEffect(() => {
refetch();
}, [keyword]);
'코딩' 카테고리의 다른 글
zsh: command not found: gatsby 에러 해결 (0) | 2022.12.16 |
---|---|
Command terminated with exit status 1 에러 해결 (0) | 2022.12.16 |
framer-motion | custom, mode="wait" (0) | 2022.11.09 |
<img> img 테두리에 흰색 선이 생기는 이유와 해결방법 (0) | 2022.10.31 |
offset, 오프셋, 상대주소 (0) | 2022.10.19 |