Type inference doesn't seem to work with context and loader functions - TanStack