Skip to content

[Bug]: Editor watch window does not return a response when a function is run on page load #15301

Open
@ramsaptami

Description

Is there an existing issue for this?

  • I have searched the existing issues

Description

Watch window does not return a response when function is run on page load, i.e. the watch window contains the placeholder information instead of expected result even though we see a reponse for successfully executing a function

The expectation is to see the watch window in the same state as we see queries being run on page load.

Steps To Reproduce

  1. Add a JS object and add following code to the function
export default {
	myFun1: async () => {
		console.log('function 1')
		return "function 1"
	}
}
  1. Set this function to run on page load
  2. Refresh the page and observe that the watch window has placeholder information instead of expected function 1 (See screenshot 1)
  3. Run the function myFun1 directly on the editor and observe that the reponse on the watch window is as expected (See screenshot 2)

image
image

Public Sample App

No response

Version

Cloud

Metadata

Labels

BugSomething isn't workingIntegrations ProductIssues related to a specific integrationJS ObjectsIssues related to JS ObjectsMediumIssues that frustrate users due to poor UXOnPageLoadOnPageLoad issues on functions and queriesProductionQuery & JS PodIssues related to the query & JS PodUX Improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions