question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I am trying to show a spinner at the end of the list when more data is getting fetched.

I can’t seem to find a better way other than adding a footer component after inner container:

<outer>
  <inner><item/>...</inner>
  <footer/>
</outer>

@bvaughn is this something that you would want to add?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bvaughncommented, Aug 30, 2018

No, I don’t think I’d want to add a footer component. The way I would approach this sort of feature with react-window or react-virtualized is to add 1 to the itemCount when there’s more data to be shown, and just render a loading spinner in that last row 😄

0reactions
bvaughncommented, Aug 31, 2018

In my case I can’t tell if there is more data or not.

I think this might be key. Knowing if there’s more data to be loaded seems important. Every API I’ve interacted with can at least tell you yes/no for this question– even if it can’t tell you e.g. the total number of remote items.

Add back lines 35-37 to see behaviour with extra row.

The extra row is shown regardless because of your isLastRow conditional.

Anyway, I was imagining something very similar: https://codesandbox.io/s/m72lm0yply

Read more comments on GitHub >

github_iconTop Results From Across the Web

Footer component — Vuetify
The padless prop removes all default padding from the footer component.
Read more >
<footer> - HTML: HyperText Markup Language - MDN Web Docs
The <footer> HTML element represents a footer for its nearest ancestor sectioning content or sectioning root element. A <footer> typically ...
Read more >
[Documentation] VDataTable footer props need more ... - GitHub
Problem to solve Given Example : Footer props. ... but if going to use under <v-data-table> as footer-props it's become itemsPerPageOptions ...
Read more >
Add the file name, date, author or other document properties ...
Using document info. For common information, such as Author name, File name, date, or file path, follow these steps: Double-click the header or...
Read more >
Header / Footer Properties - Evisions Help
The second is Footer which is used for editing the properties of the footer area. Use of headers is required when you have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found