S
SolidJS7mo ago
alexmac

Difficulty updating deeply nested store: produce() typed as Partial<T>

I'm experiencing some difficulties updating deeply nested state within a store, specifically with the typings of produce(). The draft parameter is presented as Partial<T>, generally meaning any modifications I need to do to deeply nested objects won't work as I have to continuously check if each level deep exists or not. This behavior seems counter to the intended functionality of the function, so I'm wondering if it's my specific typescript setup that's getting in the way somewhere?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server