useMaintenancePage

this hook checks the "maintenance-redirect" feature flag and redirects to it if it is set

ArgumentList:

No arguments

    Returns:

    No return

    Examples

    Basic Usage

    // import { useMaintenancePage } from '@octanner/prism-utilities';
    () => {
    const featureFlagClient = React.useMemo(
    () => new LaunchDarklyClient(LAUNCHDARKLY_CLIENT_ID),
    [],
    );
    const SomeComponent = () => {
    const value = useMaintenancePage();
    return <div>Since you are seeing this 'maintenance-redirect' must be set to 'none'</div>
    }
    return (
    <FeatureFlagProvider client={featureFlagClient}>
    <SomeComponent />
    </FeatureFlagProvider>
    )
    };