Skip to content

[Bug]: Javascript component with After the application (Page) loads #1572

Closed
@LynxMaxPayne

Description

@LynxMaxPayne

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When the option 'After the application (page) loads' is assigned to a Data query 'Run Javascript Code', the code executes indefinitely every half second. However, the code should execute only once at the application's startup

Expected Behavior

The code should execute only once at the application's startup.

Steps to reproduce

Create a new application.

Add a data query with "Run Javascript Code" and select the option "After the application loads."

Add a data query "Temporary State" and set its value to 0.

In the JavaScript code, include the following: return state1.setValue(state1.value + 1);

Add a text field on the application's page to display the variable state1.value.

And run the app

Environment

Docker single image lowcoderorg/lowcoder-ce:latest and lowcoderorg/lowcoder-ce:2.6.3

Operating System: Windows 11
Browser: Google Chrome

Additional Information

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions