You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-query의 fetch 함수(useQuery, useMutation 등) 사용 시 지정할 수 있는 option 중 자주 사용하는 option들은 QueryClient에 defaultOptions로 지정하면 코드 중복을 줄일 수 있습니다.
현재 공통으로 사용하고 있는 옵션은 refetchOnWindowFocus: false입니다.
개발하먄서 필요하다 싶은 옵션이 생길 때마다 댓글로 남겨주세요!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
react-query의 fetch 함수(useQuery, useMutation 등) 사용 시 지정할 수 있는 option 중 자주 사용하는 option들은 QueryClient에 defaultOptions로 지정하면 코드 중복을 줄일 수 있습니다.
현재 공통으로 사용하고 있는 옵션은
refetchOnWindowFocus: false
입니다.개발하먄서 필요하다 싶은 옵션이 생길 때마다 댓글로 남겨주세요!
Beta Was this translation helpful? Give feedback.
All reactions