Skip to content

DateOnly and TimeOnly is not supported in Blazor change detection for parametersΒ #49021

@Andrzej-W

Description

@Andrzej-W

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

DateOnly and TimeOnly is probably supported almost everywhere. Now it is time to add them to known immutable types here (similar to Guid):

private static bool IsKnownImmutableType(Type type)
=> Type.GetTypeCode(type) != TypeCode.Object
|| type == typeof(Guid)
|| typeof(IEventCallback).IsAssignableFrom(type);

GetTypeCode returns TypeCode.Object for both of them.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Labels

PerfPillar: Complete Blazor WebPriority:3Work that is nice to havearea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onehelp candidateIndicates that the issues may be a good fit for community to help with. Requires work from eng. team

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions