KindeK
Kinde2y ago
3 replies
moroshko

useKindeAuth isLoading doesn't change to false

Trying to get the org in a client component, but
isLoading
does not change to
false
.
What am I missing?

"use client";

import { useKindeAuth } from "@kinde-oss/kinde-auth-nextjs";

export const MyComponent = () => {
  const { isLoading, getOrganization } = useKindeAuth();

  // Prints: {isLoading: true, org: null}
  console.log({
    isLoading,
    org: getOrganization(),
  });

  ...
};
Was this page helpful?