favicon :D
On Nov 12, 8:27 am, Alex Casanova <
alexcasanova2...@gmail.com> wrote:
> Hello, I just started using node.js/express for an application i'm building
> for work. The app is more or less functional at least for the backend.
> One thing I noticed which is bugging me is after I did some refactoring. I
> started seeing some weird things happen like a database query returning
> more data than I'd like in the console. Later it didn't seem like more
> than one row it seemed like the handler was firing more than once. I quit
> all the node process in the activity monitor to see if that was the issue,
> but i still got the same behavior. I'm new to this so I'm guess it is
> something I'm doing wrong but I can't see where.
>
> for instance I have a simple route for the home page
> /**
> * Routes
> */
> app.get('/', function (req, res) {
> console.log("hello World");
> res.render('create');
>
> });
>
> when I look at the console.. I see hello world twice. This behavior is
> happening in other sections of the code which is scaring me. Doesn't seem
> normal.
> Could someone shed some light. Thanks