Confused about using React Query as a state manager for Nextjs dynamic pages - TanStack