How to use the uno-react.useEffectWithLoading function in uno-react

To help you get started, we’ve selected a few uno-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github unosquare / passcore / src / Unosquare.PassCore.Web / ClientApp / Main.tsx View on Github external
export const Main: React.FunctionComponent = () => {
    const [settings, isLoading] = useEffectWithLoading(resolveAppSettings, {}, []);

    React.useEffect(() => {
        if (settings && settings.recaptcha) {
            if (settings.recaptcha.siteKey !== '') {
                loadReCaptcha();
            }
        }
    }, [settings]);

    if (isLoading) {
        return (
            
                
                    
                        Loading Passcore...