Weird interaction when trying to set undefined using CallbackProperty in polygon

First some explaination I am working an developing tools on using cesiumjs in react
So I am controlling some variables using refs to avoid rerenders
here is 2 version of what am i trying to explain
version 1:
extrudedHeight: undefined,
version 2:
extrudedHeight: new CallbackProperty(() => { return undefined; }, false),
my issue is the following even thought the value is the same in both ‘version 2’ doesn’t work properly and the polygon that i am trying to control sink under the building and doesn’t cover model similar to the first version
Any help would be appreciated
Note: for now I am controlling the property of extrude directly but I would like to keep my code structure clean as much as i can by using this method would love to hear suggestions

Can you provide your problem as Sandcastle link?

Can you point me to how can i create a sandcastle

1 navigate https://sandcastle.cesium.com/
2 click editor button on the right sidebar and write your code and check the result

3 click share button.

image