
Core Pattern: useInfiniteQuery Instead of managing page state yourself, React Query handles it: function usePosts() { return useInfiniteQuery({ queryKey: ['posts'], queryFn: ({ pageParam }) => fetchPosts(pageParam), // pageParam managed by ...
Obsessed with crafting software.
Just a guy who loves to write code and watch anime.
Markdown supported · ⌘↵ to post
No responses yet.