Closed TheOneHoff closed 3 years ago
This is just normal. Part of the problem of server side rendered apps. I'd you want to solve this, use React or other frontend frameworks
ahh I think I know what you mean, the other page is loading ourscript.js
, and sending request when not really needed. I thought you meant by it is sending request when you go back to the page that needs the data.
Oh right lol. I think the best way to solve this issue would be to include the queries to the database when the page is served through the initial route, rather then call the post requests after the page is loaded
That's server side rendering though. This means that every time you submit the form, you have to request everything from the database.
The way to solve this problem is to add the JS stuff as part of the rendered html separately per page.
Fixed with #85
Basic Information
The /get_queue post requests are sent to the application even when switching to other pages where these requests are not needed
Other Information
Example: app_1 | 172.18.0.1 - - [01/Oct/2021 18:52:29] "GET /analytics HTTP/1.1" 200 - app_1 | [] app_1 | 172.18.0.1 - - [01/Oct/2021 18:52:29] "POST /get_queue HTTP/1.1" 200 - app_1 | [] app_1 | 172.18.0.1 - - [01/Oct/2021 18:52:29] "POST /get_queue HTTP/1.1" 200 - app_1 | [] app_1 | 172.18.0.1 - - [01/Oct/2021 18:52:29] "POST /get_queue HTTP/1.1" 200 -