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
We need to reuse constant utility values by creating read-only, or const members in code. The main problem with too many utilities is that for heavy components like DataGrid, it will allocate a new instance of each "fluent" method on each render. Usually, this is not a problem for simple use cases.
For example for:
Display="Display.None" we can have Display="Constants.DisplayNone"
Margin="@Blazorise.Margin.Is1.FromEnd" we can have Margin="Constants.Margin1FromEnd"
We need to reuse constant utility values by creating read-only, or const members in code. The main problem with too many utilities is that for heavy components like DataGrid, it will allocate a new instance of each "fluent" method on each render. Usually, this is not a problem for simple use cases.
For example for:
Display="Display.None"
we can haveDisplay="Constants.DisplayNone"
Margin="@Blazorise.Margin.Is1.FromEnd"
we can haveMargin="Constants.Margin1FromEnd"
Where:
The text was updated successfully, but these errors were encountered: