In a custom component using the useStateNumber function does not allow for setting negative numbers as the initialValue:
e.g.
const [bounds_sw_lng, _setBoundsSWLng] = Retool.useStateNumber({
name: 'bounds_sw_lng',
initialValue: -119.123
});
errors out with this error message:
Generating & updating manifest...
✘ [ERROR] Retool.useStateNumber was called with a non literal parameter "-119.754906". "-119.754906" is not allowed as a parameter to Retool.useStateNumber because it's a PrefixUnaryExpression, only literal values such as "example-string" or [1,2,3] are allowed. [plugin generate-manifest]
But non negative numbers are allowed e.g.
const [bounds_sw_lng, _setBoundsSWLng] = Retool.useStateNumber({
name: 'bounds_sw_lng',
initialValue: 0
});
Is this a bug? Or am I doing something incorrect?