Fix explore prompt sometimes showing up when the home TL is loading (#27062)
This commit is contained in:
parent
3de6dcf634
commit
a001ae2f39
1 changed files with 4 additions and 2 deletions
|
@ -55,8 +55,10 @@ const homeTooSlow = createSelector([
|
||||||
getHomeFeedSpeed,
|
getHomeFeedSpeed,
|
||||||
], (isLoading, isPartial, speed) =>
|
], (isLoading, isPartial, speed) =>
|
||||||
!isLoading && !isPartial // Only if the home feed has finished loading
|
!isLoading && !isPartial // Only if the home feed has finished loading
|
||||||
&& (speed.gap > (30 * 60) // If the average gap between posts is more than 20 minutes
|
&& (
|
||||||
|| (Date.now() - speed.newest) > (1000 * 3600)) // If the most recent post is from over an hour ago
|
(speed.gap > (30 * 60) // If the average gap between posts is more than 30 minutes
|
||||||
|
|| (Date.now() - speed.newest) > (1000 * 3600)) // If the most recent post is from over an hour ago
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
|
|
Loading…
Reference in a new issue