Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
LynxMaxPayne opened this issue Mar 10, 2025 · 0 comments
Open
1 task done
Assignees

Comments

@LynxMaxPayne
Copy link

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

@raheeliftikhar5 raheeliftikhar5 self-assigned this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants