@frontegg/react-hooks
Advanced tools
Comparing version 2.0.0-alpha.727232343 to 2.0.0-alpha.730990828
13
index.js
@@ -13,8 +13,11 @@ import React, { useMemo } from 'react'; | ||
const setLoading = (loading) => { | ||
if (loading) { | ||
document.body.classList.add('frontegg-loading'); | ||
const isSSR = typeof window === 'undefined'; | ||
if (!isSSR) { | ||
if (loading) { | ||
document.body.classList.add('frontegg-loading'); | ||
} | ||
else { | ||
document.body.classList.remove('frontegg-loading'); | ||
} | ||
} | ||
else { | ||
document.body.classList.remove('frontegg-loading'); | ||
} | ||
}; | ||
@@ -21,0 +24,0 @@ const FronteggContent = ({ children, setLoading }) => { |
{ | ||
"name": "@frontegg/react-hooks", | ||
"libName": "FronteggReactHooks", | ||
"version": "2.0.0-alpha.727232343", | ||
"version": "2.0.0-alpha.730990828", | ||
"author": "Frontegg LTD", | ||
@@ -9,6 +9,6 @@ "module": "index.esm.js", | ||
"dependencies": { | ||
"@frontegg/redux-store": "2.0.0-alpha.727232343", | ||
"@frontegg/redux-store": "2.0.0-alpha.730990828", | ||
"react-redux": "7.x" | ||
}, | ||
"gitHead": "fa60562262f0ab8737e66fd739afa499fc83b7d6", | ||
"gitHead": "b105a991f2242ea1dbb2c72dcd6c0936a14ae4b0", | ||
"main": "index.js", | ||
@@ -15,0 +15,0 @@ "es2015": "index.es.js", |
Sorry, the diff of this file is not supported yet
48883
366
+ Added@frontegg/redux-store@2.0.0-alpha.730990828(transitive)
+ Added@frontegg/rest-api@2.0.0-alpha.730990828(transitive)
- Removed@frontegg/redux-store@2.0.0-alpha.727232343(transitive)
- Removed@frontegg/rest-api@2.0.0-alpha.727232343(transitive)