---
title: "Discussion on \"gcTime in TanStack Query explained\" | Hashnode"
description: "Discussion on \"gcTime in TanStack Query explained\". Introduction\nI had a bit of a tough time understanding gcTime in TanStack Query. So I decided to write this post for myself.\nEvery query is cached\nWhen you fetch data using Tanstack Query, the data is cached so that the following requests can be serv..."
url: "https://hashnode.com/posts/gctime-in-tanstack-query-explained/663eeef15fcf52cb55a20572"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [gcTime in TanStack Query explained](https://tigerabrodi.blog/gctime-in-tanstack-query-explained?utm_source=hashnode&utm_medium=feed)

Introduction I had a bit of a tough time understanding gcTime in TanStack Query. So I decided to write this post for myself. Every query is cached When you fetch data using Tanstack Query, the data is cached so that the following requests can be serv...

May 11, 2024 · 2 min read · tigerabrodi.blog  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#nextjs](https://hashnode.com/tag/nextjs)

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

  
[View profile](https://hashnode.com/@tigerabrodi)

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses 2

Markdown supported · ⌘↵ to post

[Moustafa Hawi](https://hashnode.com/@tihaniggermorrol)

[May 30, 2025](https://hashnode.com/posts/gctime-in-tanstack-query-explained/663eeef15fcf52cb55a20572/comment/6839e7f7ce8339b64bb49801)

n1gga

[Moustafa Hawi](https://hashnode.com/@tihaniggermorrol)

[May 30, 2025](https://hashnode.com/posts/gctime-in-tanstack-query-explained/663eeef15fcf52cb55a20572/comment/6839e75d027848dec6db13db)

damn n1gga why you got that cringe anime shit everywhere, isnt animes for fags and 9yo kids?
