nl_tokens: / * shouldRequestRecs is used for calculating whether or not we need more recommendations to display in - stream recs for a stream .
pl_tokens: function shouldRequestRecs ( <mask> , streamKey , recsStreamKey ) { if ( ! recsStreamKey ) { return false ; } const totalSubs = getReaderFollows ( state ) . length ; const items = getReaderStream ( state , streamKey ) . items ; const recsStream = getReaderStream ( state , recsStreamKey ) ; const recs = recsStream . items ; if ( recsStream . lastPage || recsStream . isRequesting ) { return false ; } if ( recs . length === 0 ) { return true ; } return recs . length < items . length * ( RECS_PER_BLOCK / getDistanceBetweenRecs ( totalSubs ) ) ; }