If a TypedState has a field (value in example) which is a dataclass itself, calling self.data.value = DataClass(...) will fail silently, overwriting the ...__Proxy object and breaking the synchronization with the state.
We have to iterate over the fields of the dataclass and set them one by one instead.
@Thibault-Pelletier