Is there a way to use hooks in loader function? - TanStack