Several items in my application hinge on being able to change the function used to calculate values for a renderer's visual variables. In ArcGIS Javascript API 4.9, assigning a function to the "field" property, as I had previously done, is no longer an option. I created an Arcade expression as suggested in Release notes for 4.9 | ArcGIS API for JavaScript 4.9 and it only works the first time you assign it. After that, assigning a new renderer with a new Arcade expression does not work. It doesn't seem to recognize that anything changed in the renderer, even though I can inspect it through the console and see that the valueExpression did change.
... View more