ModelUpdate does not update value

Hello there!

I am using react custom components in Retool with the {model, modelUpdate, triggerQuery} props.
Inside a function in my react component, I want to update some of the model's data using modelUpdate but it's not working for me.
I am also calliing a query using triggerQuery inside the same function and the query runs successfully but for some reason the modelUpdate does not work.

Any help?


image1

Hi @kareemheidar

The test property modified through modelUpdate call, is available at runtime, thus, you'll see that value change in the State panel, by looking at your component properties.

You can wire that property within other component to see the result in the UI.

Hope this help

2 Likes

It really helped, thank you!

1 Like