Fix state storage not initializing when writing
This commit is contained in:
parent
6eb346f4c8
commit
34d43bc0a8
@ -51,6 +51,9 @@ public struct State<Value>: StateProtocol {
|
||||
return value
|
||||
}
|
||||
nonmutating set {
|
||||
if content.storage == nil {
|
||||
_ = rawValue
|
||||
}
|
||||
content.value = newValue
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user