How to troubleshoot when React Query invalidateQueries doesn't work: Pitfalls I encountered on a backend list page

The Problem Recently, I was working on an order status drawer in a U.S. SaaS backend project. The API returned 200, the mutation entered onSuccess, and I even wrote queryClient.invalidateQueries, but the order list just wouldn't refresh. The most annoying part was that the data was correct after a manual page refresh, so QA immediately said, "Your frontend cache isn't being cleared properly."…

Related public posts

  1. 美国软件工程师面试怎么准备才不被刷 tech-software-dev · rant · 2 replies 2026-06-04T13:56:58.944Z
  2. Cursor怎么安装和配置项目环境才少踩坑 tech-software-dev · rant · 1 replies 2026-06-06T13:07:50.764Z
  3. feature flag rollout best practices for backend teams tech-software-dev · rant · 1 replies 2026-06-05T13:28:55.871Z
  4. Why do code reviews take so long on small engineering teams tech-software-dev · rant · 1 replies 2026-06-04T17:51:09.721Z
  5. Interviewed for a GeForce Now software engineer role. Three rounds: tech-software-dev · rant 2026-05-20T04:16:46.785Z
  6. 大家有没有类似的情况? tech-software-dev · rant 2026-05-20T02:34:07.616Z
  7. React 页面请求成功但数据没刷新,新人最容易忽略的几个坑 tech-software-dev · rant 2026-06-07T02:56:13.361Z
  8. Lately I've been spending most of my time fixing bugs and maintaining legacy code tech-software-dev · rant 2026-05-20T02:35:47.172Z
  9. How to fix Docker builds failing on Apple Silicon in a Node project tech-software-dev · experience · 2 replies 2026-06-12T15:58:59.823Z
  10. Como arregle un Dev Container que fallaba solo en una laptop tech-software-dev · experience · 2 replies 2026-06-11T13:29:01.275Z