appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.67k stars 3.75k forks source link

[Bug]: Function return value does not reflect without a page refresh #37565

Open shadabbuchh opened 3 days ago

shadabbuchh commented 3 days ago

Is there an existing issue for this?

Description

Unless the page is refreshed at least once, the returned value of a function does not reflect in the widgets when executed.

Steps To Reproduce

  1. DnD a button & text widget.
  2. Create a JS object & return some value in its function
  3. Set the onClick property of the button widget such that it executes the JS function.
  4. Display the returned value in the text widget

Expected: On clicking the button widget, the JS function should run & the returned value should be displayed in the text widget immediately.

Public Sample App

No response

Environment

Production

Severity

Medium (Frustrating UX)

Issue video log

https://jam.dev/c/812fe533-ea71-4ec4-99f6-ed82610e4d6e

Version

Cloud