The home route is triggered several times when running nodeJs by using expressJs to get JSON data from an API, and render to the ejs file #6295
Closed
phoncepiano
started this conversation in
General
Replies: 2 comments
-
I tied running this code (both using Are you sure that this code is enough to reproduce your problem? How exactly do you make the request to your server? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I got the solution, I found the problem was the extension (Torrent Scanner) in my browser, it refreshed the page and caused the duplication of output objects shown in the console... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I created a simple web application that fetches data from an API but when I get a response and render the result to ejs file it seems the route is called multiple times
index.js file
index.ejs file looks like this:
Beta Was this translation helpful? Give feedback.
All reactions