Best of React Query2025

  1. 1
    Article
    Avatar of tigerabrodiTiger's Place·1y

    Become expert in React Query

    This post aims to deepen your understanding of React Query, highlighting its capabilities beyond simple data fetching to being a server state manager. It clarifies key concepts like stale data, cache, and invalidation, and provides best practices for using query keys and query functions. Practical examples cover common mistakes, the defaults of React Query, and advanced techniques like prefetching, handling optimistic updates, and configuring infinite queries. The guide emphasizes reading the official documentation and leveraging dev tools for debugging.

  2. 2
    Article
    Avatar of tkdodoTkDodo·42w

    React Query Selectors, Supercharged

    React Query's select option enables fine-grained subscriptions by allowing components to subscribe only to specific parts of query data rather than the entire response. This prevents unnecessary re-renders when unrelated data changes. The feature supports structural sharing for referential stability and can be optimized further using useCallback for stable function references and external memoization libraries like fast-memoize to prevent expensive transformations from running multiple times across different QueryObservers. TypeScript support requires careful handling of generic type parameters to maintain type safety while allowing flexible selector abstractions.

  3. 3
    Article
    Avatar of evolvedevevolvedev·43w

    Introducing Bookshelfed - search books, create shelves, share your profile

    Bookshelfed is a new book tracking platform that allows users to search books, create shelves, track reading progress, and share profiles publicly. Built with Go backend and React frontend, it features a custom dataset of 50M+ books without relying on third-party APIs. The platform positions itself as a Goodreads alternative with no ads, better AI usage, and privacy controls for hiding private reads.