useKindeAuth isLoading doesn't change to false
Trying to get the org in a client component, but
What am I missing?
isLoading does not change to false. What am I missing?
isLoadingisLoading does not change to falsefalse. "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(),
});
...
};"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(),
});
...
};