Closed
Description
In #35, a change was made where properties that are undefined
will not become reactive. I feel like this change was overshooting its intentions a little, since the point is actually to get rid of uninitialized properties in the data object.
Considering that in a lot of coding standards the use of null
is prohibited in favour of using undefined
, it's a little problematic that null
has to be used as a default value in class components.
I'm not sure whether there's a better way to fix this for Babel users, but as a TypeScript user, this change has honestly become quite inconvenient as every class component now needs to be littered with warning suppressions for the null
keyword.
Any chance a better solution could be looked into here?
Metadata
Metadata
Assignees
Labels
No labels