The author delves into learning TanStack Query (formerly React Query) to explore its data fetching and caching capabilities.
Before relying on abstracted tools, the author decided to understand the problem caching solves by implementing a basic manual caching system.
The author identified inefficiencies in making repetitive API calls for the same data and devised a simple in-memory caching approach to enhance performance.
By implementing manual caching, the author gained insights into caching systems, memoization logic, and the trade-offs involved, realizing the advantages of tools like TanStack Query in handling complex caching scenarios.