/auth
Search
⌃K
Comment on page

isLoading

Returns a boolean on whether SlashAuth is loading. This happens before it is initialized.

Usage

import React from 'react';
import { useSlashAuth } from '@slashauth/slashauth-react';
​
export const Loading = () => {
const { isLoading } = useSlashAuth();
​
return <div>{`Loading? ${isLoading}`}</div>;
};

Return Value

boolean
Last modified 10mo ago