본문 바로가기

기술 블로그

검색하기
기술 블로그
프로필사진 jaegwan

  • 분류 전체보기 (106)
    • 알고리즘 (5)
    • 프론트엔드 (25)
      • TIL (8)
      • Javascript (7)
      • react 완벽 가이드[udemy] (0)
      • 처음 배우는 리액트 네이티브 (3)
      • 리액트를 다루는 기술 (0)
    • 백엔드 (17)
      • JAVA (13)
      • Spring boot (1)
    • Android (17)
    • 기술면접 (2)
    • Ios (3)
      • swift (1)
    • 개인 (1)
    • linux (1)
    • 기타 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2023/08   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록2023/08/25 (1)

기술 블로그

react-query 가이드 2: 병렬과 동적 그리고 Mutations

import axios from 'axios'; import { useQuery } from 'react-query'; const fetchSuperHero = (heroId) => { return axios.get(`http://localhost:4000/superheroes/${heroId}`); }; export function useSuperHeroesData(heroId) { return useQuery(['super-hero', heroId], () => fetchSuperHero(heroId)); }​ const { refetch } = useQuery( 'super-heroes', fetchSuperHeroes, { enabled: false, }, ); return ( RQ Super H..

카테고리 없음 2023. 8. 25. 15:41
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바