FluentUI Tabs constantly reloading #2622
-
I'm creating a Blazor server app (keep in mind it's my first time using it), and I decided to use FluentUI for the frontend.
The issue I'm having is whenever I switch between tabs, all the ones that contain the same component (even though it is a different instance), rerender of all the other tabs (charts)... You can imagine how slow it is switching between charts
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I don't think this is a library issue but a standard Blazor one. Have you looked at https://learn.microsoft.com/en-us/aspnet/core/blazor/components/element-component-model-relationships?view=aspnetcore-8.0 |
Beta Was this translation helpful? Give feedback.
-
This issue has been resolved by managing the state of component parameters within the |
Beta Was this translation helpful? Give feedback.
This issue has been resolved by managing the state of component parameters within the
OnParametersSetAsync()
method. By comparing if the complex-typed parameters have changed when a parent in the component tree was refreshed.Some documentation that helped: