17 lines
571 B
Markdown
17 lines
571 B
Markdown
# Blazor & MudBlazor Tips
|
|
|
|
## Rendering
|
|
- Use `@key` for list rendering performance
|
|
- `StateHasChanged()` only when needed, prefer Fluxor subscriptions
|
|
- Avoid heavy logic in `OnParametersSet`, prefer `OnAfterRender`
|
|
|
|
## MudBlazor
|
|
- Use `MudDataGrid` for complex tables, `MudTable` for simple
|
|
- `MudForm` with FluentValidation via `FluentValidationValidator`
|
|
- Theme customization via `MudThemeProvider`
|
|
|
|
## State
|
|
- Component state → `@bind` or local fields
|
|
- Feature state → Fluxor store
|
|
- Shared across components → Fluxor or cascading parameters
|