[Bug-13032]Using self.refreshBinding in a bound (binded?) props.x or custom.x Change Script

I bound a custom value to a tag.
Then, I wanted a completely different binding (in props) to run when this value changed.
However, the JSON broke after saving the Change Script.

Here is the offending JSON:

,
"onChange": {
"script": "\tprint "Joe\u0027s change script! Edit JSON HERE!!"\n\tself.refreshBinding(\u0027props.views\u0027)",
"enabled": null
}

Tried setting :null to :true, but it didn't fix it.
Tried using a different component (label.props.text) and using getSibling to access the 'props.view' that needed changed.
Seemed to work fine when it was just a print statement, but I did not test this thoroughly.

Version: 8.0.0-beta0 (b2019030402)
(Can't upgrade until Friday. Sorry if this has been fixed in the last few days.)

Is that the entirety of the .json file? If not, could you please post or send the full file?

We had a team member replicate this, so we’re opening an internal ticket. Early indication is that this is a result of the refreshBinding call within a change script, so until we can investigate and deploy a fix, please avoid refreshBinding calls in Change Scripts.

1 Like

This issue was fixed in the build that was uploaded today (3/20).
Please let us know if you continue to see this behavior after upgrading.