Is prepending items available in GroupedVirtuoso?
See original GitHub issuehttps://virtuoso.dev/prepend-items/
We are trying to implement this example wile using GroupedVirtuoso and we get this error as soon as we start using the firstItemIndex property.

also wondering if we got this right:
firstItemIndex = total of items to be loaded - the one we have loaded
In our case we are grouping by date so total of items to be loaded is difficult if not impossible to calculate as we will need to take account for the header?

thanks a lot for the great work ❤️ and I will gladly contribute again if needed 😃
Issue Analytics
- State:
- Created 3 years ago
- Reactions:10
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Prepending Items - React Virtuoso
Appending items to the list is straightforward - the items at the bottom do not displace the currently rendered ones.
Read more >Developers - Is prepending items available in GroupedVirtuoso? -
We are trying to implement this example wile using GroupedVirtuoso and we get this error as soon as we start using the firstItemIndex...
Read more >react-virtuoso | Yarn - Package Manager
Variable sized items out of the box; no manual measurements or hard-coding item heights is necessary;; Support for reverse (bottom up) scrolling and...
Read more >React Virtuoso: The Most Powerful Virtual List Component for ...
The GroupedVirtuoso component is a variant of the "flat" Virtuoso ... For example, passing [20, 30] will render two groups with 20 and...
Read more >A powerful virtual list component for React
Support for reverse (bottom up) scrolling and prepending items (chat, feeds, etc);; Grouped mode with sticky headers;; Responsive grid layout; ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think you might achieve that by re-mounting the component (by passing a different
keyprop) and passing differentgroupCountsandinitialTopMostItemIndex. Not an optimal solution, even if it works.I could use this as well. I tried to add the feature myself but I couldn’t get there. The only thing I was able to shake out of the experiment that may be of value is an e2e example showing:
Its in my fork if you need it. Front end is not my specialty so sorry for the ugly code.