-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When we first render virtualize, the component first loads items from index 1. Because of that the callback for the visible upper spacer is being called and the new load is correctly being called from element 0. This also leads to more calls to ItemsProvider.
Expected Behavior
The first load should work correctly and calculate the items from the index 0 as upper spacer should not be there on the first load.
Steps To Reproduce
- Mount the VirtualizationTable.razor.
- Put a breakpoint on the callback. (e.g. here)
- See how the first component loads elements from the Item 1 on the first load and the upper spacer is visible.
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components