title: Nodejs waiting for Localhost..... and fetching data
body: <p>I don't know particularly if this is a react-router issue im having or a nested route issue, or even a data issue. I'm hacking together a isomorphic single page app with react flux and node/express and i'm having trouble understanding why sometimes on my /reports and /reports/:id routes it will spit out no data/or empty array if I cycle through a lot of routes (like moving back and forth between /reports and every different /reports/:id eventually one of them will spit undefined (any random one at that moment) and when I return to my dashboard and then to my data (/reports) its all empty. If I hit refresh, it will say waiting for localhost... forever (like 1 min+ which is forever on the web) and then i'd have to restart the server. </p>
  
  <p>My routes are this :</p>
  
  <pre><code>&lt;Route&gt;
   &lt;Route name ="dash" path="/dashboard" handler={App}&gt;
      &lt;Route name ="dashboard" path="/dashboard" handler={Dashboard}/&gt;
  
  
      &lt;Route name ="assignReport" path="/user" handler={AssignReport}/&gt;
      &lt;Route name ="assignReported" path="/user/:id" handler={AssignReported}/&gt;
      &lt;Route name ="employees" path="/employees" handler={Employees}/&gt;
      &lt;Route name ="reports" path="/reports" handler={Report}/&gt;
        &lt;Route name ="singlereports" path="/reports/:id" handler={ReportView}/&gt;
        &lt;Route name ="addsubreport" path="/reports/:id/addsubreport" handler={AddSubreport}/&gt;
        &lt;Route name ="editreports" path="/reports/:id/edit" handler={EditReport}/&gt;
        &lt;Route name ="MyEmployees" path="/MEmployees" handler={MyEmployees}/&gt;
        &lt;Route name ="AllEmployees" path="/AEmployees" handler={AllEmployees}/&gt;
        &lt;Route name ="Profile" path="/profile" handler={Profile}/&gt;
        &lt;Route name ="reportstocomplete" path="/reportsc" handler={ReportsToComplete}/&gt;
      &lt;Route name ="addReport" path="/addReport" handler={AddReports}/&gt;
      &lt;Route name ="readme" path="/readme" handler={Readme}/&gt;
      &lt;Route name ="statistics" path="/statistics" handler={Stats}/&gt;
      &lt;Route name ="signup" path="/signup" handler={Signup} /&gt;
      &lt;Route name ="login" path="/" handler={Login} /&gt;
      &lt;Route name ="newreport" path="/newreport" handler={NewReport}/&gt;
      &lt;Route name ="templatereport" path="/templatereport" handler={TemplateReport}/&gt;
   &lt;/Route&gt;
  &lt;/Route&gt;
  </code></pre>
  
  <p>EDIT: I realize that it is probably not a routing issue but most likely a ajax issue. I might be loading asynchronous data too slow. I grab every document by searching by user name rather than id which might be the case. Any thoughts?</p>
  
  <p>EDIT: It might not even be a ajax issue, the problem doesn't occur on IE, i can refresh and GET the data over and over again however it has trouble POST' ing data on IE. On chrome it will say waiting for localhost... for a while.</p>
  
  <p>EDIT: I am able to spam the routes on firefox, and continously it will always work fine. It does not work fine when I type in localhost:3000 in the browser, therefore typing in the IP allows for it to work (127.0.0.1); Doing the same for chrome, I still get undefined and stuck on localhost after a bunch of spams (10 - 20 route spams(clicking back and forward/ alt right and alt left)</p>