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
-
Set up a layout and content page
-
On layout page, add queries
course_id
andlecture_id
-
On lay out page, set up buttons that do an internal refresh - while giving the
lecture_id
as a query to the URL: -
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:
-
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 video2020.12.03 13.16 - 1115 - Amethystsunbird
-
Now click on one of the buttons set up in step 3. This will now trigger the server action twice. See the video:
2020.12.03 13.18 - 1116 - Frillneckedlizard
Extra:
7. If I now remove the input parameter in the server action
- It’s now loading the query once :
2020.12.03 13.21 - 1118 - Cockatoo
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?
Last updated: