Knowledge · frontend

invalidateQueries vs staleTime — 내 쓰기 즉시 반영

즉시 반영을 위해 staleTime을 낮추면 트래픽이 폭증한다. staleTime은 신선도 SLA로 유지하고 쓰기 후 invalidateQueries로 그 순간만 강제 refetch하는 이유와 방법

Date
2026-07-25
Reading time
6 min
Confidence
Inferred

문서 그래프

관련 문서

이 문서를 언급한 문서

관련 TIL

관련 Knowledge

태그

react-querycachingoptimistic-uidata-fetchinginvalidation