handle fetching state on downloads and publishes pages #1593

Merged
daovist merged 5 commits from downloads-pending into master 2018-07-18 20:56:32 +02:00
Showing only changes of commit 324dc3fa4f - Show all commits

View file

@ -69,7 +69,7 @@ class Page extends React.PureComponent<Props, State> {
// We don't want to show the loading spinner right away if it will only flash on the // We don't want to show the loading spinner right away if it will only flash on the
// screen for a short time, wait until we know it will be loading for a bit before showing it // screen for a short time, wait until we know it will be loading for a bit before showing it
const shouldShowLoader = !isShowingChildren(children) && showLoader; const shouldShowLoader = loading || (!isShowingChildren(children) && showLoader);
return ( return (
<main <main