You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ObjectProperty checks if (props.value) {...} to decide whether to use it, which means it ignores zero.
I found that surprising and expected it to maybe only ignore null and undefined.
I guess in general I would find it helpful to have some documentation on what values of Child should/will be ignored/filtered by components and which will be kept.
Right now I'm working around this in my code with typeof value === 'number' ? String(value) : value
The text was updated successfully, but these errors were encountered:
ObjectProperty
checksif (props.value) {...}
to decide whether to use it, which means it ignores zero.I found that surprising and expected it to maybe only ignore
null
andundefined
.I guess in general I would find it helpful to have some documentation on what values of
Child
should/will be ignored/filtered by components and which will be kept.Right now I'm working around this in my code with
typeof value === 'number' ? String(value) : value
The text was updated successfully, but these errors were encountered: