fix: disable loaders nesting

This commit is contained in:
Wroud
2021-11-19 19:50:46 +03:00
parent 319bc5c7eb
commit 44af62dc49
@@ -176,7 +176,7 @@ export const Loader = observer<Props>(function Loader({
}
}
if ((!isVisible && overlay) || !loading || contextState.state.size > 0) {
if ((!isVisible && overlay) || !loading) {
if (overlay) {
return <LoaderContext.Provider value={contextState}>{children}</LoaderContext.Provider>;
}