Using hooks inside of loaders - TanStack