Register query functions react-query - TanStack