Not able to overwrite value of states

Hi, there is an issue, state value is not overwrites the value of states.
here are the details

state name : childSubcomponentCount
default value : 1
new value should be :11

image

please provide solution

Hey @Pradip_Kumar_Parkar! setValue doesn't work in perfect order, so would something like this work for you?

https://community.retool.com/t/variable1-setvalue-doesnt-work-immediately/25742

Also, we have these docs that should go over async JS in Retool (including setValue)!

1 Like