Skip to content
  • Igor Drozdov's avatar
    Change the way totalNotes is calculated · 7a036b45b31d
    Igor Drozdov authored
    totalNotes is only used to prerender a number of
    skeleton containers until real notes are loaded
    
    issuable.discussions makes multiple requests, so
    too expensive for this
    
    This commit uses mere notes for this and sends
    actual totalNotes number if it's less than 10;
    otherwise it sends 10 - it allows us to avoid
    bunch of skeleton prerenderings, which are not
    necessary since they doesn't fit into the whole
    screen and disappear quite fast
    7a036b45b31d