You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple FluentIcons in a FluentDataGrid lead to very slow repaint (250ms and higher).
The repro contains two pages that are identical, except one page has a FluentButton with a FluentIcon in each data grid row (performance issue) and the other page has a FluentButton with text in each data grid row (ok).
The delete buttons in the repro toggle the visibility of a loading indicator so the performance issue is visible directly.
- reduced number of StaticAssetService.GetAsync calls in FluentIcon
- suppression of re-render if parameters haven't changed (when icon is in RenderFragment)
- dedicated dictionary instead of array is used for icon availability check
andreisaperski
added a commit
to andreisaperski/fluentui-blazor
that referenced
this issue
Jun 7, 2023
- reduced number of StaticAssetService.GetAsync calls in FluentIcon
- suppression of re-render if parameters haven't changed (when icon is in RenderFragment)
- dedicated dictionary instead of array is used for icon availability check
🐛 Bug Report
Multiple FluentIcons in a FluentDataGrid lead to very slow repaint (250ms and higher).
The repro contains two pages that are identical, except one page has a FluentButton with a FluentIcon in each data grid row (performance issue) and the other page has a FluentButton with text in each data grid row (ok).
The delete buttons in the repro toggle the visibility of a loading indicator so the performance issue is visible directly.
💻 Repro or Code Sample
Click me
🤔 Expected Behavior
When clicking the delete button, a repaint is triggered which should not take more than a few ms.
😯 Current Behavior
When clicking the delete button, a repaint is triggered that can take more than 250ms.
🔦 Context
I added a delete button to each data grid row (with a delete icon).
🌍 Your Environment
Windows 11
Visual Studio 2022
Microsoft Edge
.NET 7.0
ASP.NET Core Components WASM 7.0.3 (see project file)
FluentUI Blazor 2.1.1 (see project file)
The text was updated successfully, but these errors were encountered: