diff --git a/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs b/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs index 5b13f10..f0d3c31 100644 --- a/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs +++ b/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs @@ -123,10 +123,7 @@ protected void RestoreComponentState(JsonObject state) var propertyInfo = property.PropertyInfo; var value = state[propertyInfo.Name]; - if (value is null) - { - throw new UnreachableException(); - } + if (value is null) continue; var deserializedValue = value.Deserialize(propertyInfo.PropertyType, serializerOptions); propertyInfo.SetValue(PersistentComponent, deserializedValue);