(NodeJS, SPA) Server Action being triggered twice (routing issue?)

Wappler Version : v3.5.6
Operating System : Windows 10
Server Model: NodeJS
Database Type: SQL
Hosting Type: Docker

Expected behavior

What do you think should happen?

The server connect should trigger once. (server connect triggers a server action with a database query

Actual behavior

What actually happens?

The server action is triggered twice

How to reproduce

  1. Set up a layout and content page

  2. On layout page, add queries course_id and lecture_id

  3. On lay out page, set up buttons that do an internal refresh - while giving the lecture_id as a query to the URL:

  4. On content page: set up a Server Connect which is connected to a database query. Give the query we set on the lay out page (step 2) as input parameter:

  5. Load the content page with the parameters in the URL, this will just trigger the server action and it’s query once (it’s get_lecture_video?lecture_id=7) in below video

  6. Now click on one of the buttons set up in step 3. :warning: This will now trigger the server action twice. See the video:

Extra:
7. If I now remove the input parameter in the server action


  1. It’s now loading the query once :white_check_mark::

My best guess is that I’m trying to retrieve a query from the main layout which somehow causes it to trigger twice? A routing issue?

Community Page
Last updated: