Skip to main content

<AsgardeoLoading />

You're reading Identity & Access Management 7.1.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

<AsgardeoLoading> renders its content while the authentication state of the WSO2 Identity Server Nuxt SDK (@asgardeo/nuxt) is loading.

Overview​

<AsgardeoLoading> reads isLoading from useAsgardeo(). While isLoading is true, it renders its default slot. Once loading finishes, it renders the fallback slot, or nothing if you don't provide one.

note

The server resolves the authentication state before it renders the page, and the client marks it as loaded during hydration. In most apps, isLoading is false by the time your page renders, so <AsgardeoLoading> shows its fallback slot.

Usage​

The component is auto-registered, so you don't need to import it.

<template>
<AsgardeoLoading>
<p>Loading…</p>
<template #fallback>
<NuxtPage />
</template>
</AsgardeoLoading>
</template>

Props​

<AsgardeoLoading> has no props.

Slots​

SlotDescription
defaultContent to render while the authentication state is loading.
fallbackContent to render after loading finishes.

Was this page helpful?