lowcoder
lowcoder copied to clipboard
[Bug]: setValue() doesn't update value before calling then()
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
When using the setValue() method to update the value of a temporary state and chaining a subsequent function with then(), the updated value is not reflected in state1.value.
Screenshot:
Demo app (run query1 and observe console output): Demo App.json
Expected Behavior
The updated value should be present in state1.value after the setValue() method is called and the then() function is executed.
Steps to reproduce
- Call the setValue() method to update the temporary state's value.
- Chain a function using then().
- Attempt to access the updated value in state1.value.
Environment
Selfhosted Lowcoder 2.3.1 Cloud Lowcoder 2.4.0
Additional Information
No response
@raheeliftikhar5 Don't want to rush you, but did you have time to verify if this issue is reproducible using attached demo app? I just want to be sure that what I'm seeing is really a bug and not something on my side, because it really stalled my project.
@mat02 Yes this is valid issue and i am working on the fix.
@raheeliftikhar5 Ok, thank you very much. If I can be of any help, don't hesitate to ask :)
As confirmed from Raheel, this issue was fixed. Done and Deployed to Prod. So, closing out this issue.