Skip to content

Commit 4c33d87

Browse files
javiercnCopilot
andauthored
Update src/Components/Components/src/PersistentState/PersistentValueProviderComponentSubscription.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 92476b0 commit 4c33d87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Components/Components/src/PersistentState/PersistentValueProviderComponentSubscription.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ internal partial class PersistentValueProviderComponentSubscription : IDisposabl
1616
{
1717
private static readonly ConcurrentDictionary<(Type, string), PropertyGetter> _propertyGetterCache = new();
1818
private static readonly ConcurrentDictionary<Type, IPersistentComponentStateSerializer?> _serializerCache = new();
19-
private static readonly object _uninitializedValue = new();
19+
// Sentinel value used to indicate that _lastValue has not been initialized.
20+
private static readonly object _uninitializedSentinel = new();
2021

2122
private readonly PersistentComponentState _state;
2223
private readonly ComponentState _subscriber;

0 commit comments

Comments
 (0)