Christian Selig on Nostr: Has anyone used the new @Observable property alongside Codable? I get warnings ...
Has anyone used the new @Observable property alongside Codable? I get warnings that it won't be decoded because it's declared with an initial value, but I don't see how that's the case.
Are Observable and Codable not compatible?
Published at
2023-09-25 19:21:19Event JSON
{
"id": "dccb7e4c1e4129e706b51036c95ca03eaaf5ee103e7930308ca22317e2d7ae34",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1695669679,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/christianselig/statuses/111127408094137522",
"activitypub"
]
],
"content": "Has anyone used the new @Observable property alongside Codable? I get warnings that it won't be decoded because it's declared with an initial value, but I don't see how that's the case. \n\nAre Observable and Codable not compatible?\n\nhttps://files.mastodon.social/media_attachments/files/111/127/407/843/834/791/original/86da222bcdc31f04.png",
"sig": "ac38e6750dfb60a3555576eaa4742d5a3f8d751e34b442d88f9ecb33f7f2a5394903c673abcaee49435dae0986f1008c644882eee533ff4f3382ec1601cfaaf1"
}