Optimistic Updates with TanStack Query in Next.js - Smooth UX in React!

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 2

  • @mayer9876
    @mayer9876 4 месяца назад

    Thanks for the video. Your pendingMutationRef solution can be replaced with the tanstack built in hook useIsMutating to get the number of pending mutations in order to invalidate when all mutations are settled.