Im using Iron:router and meteor-node-csv, after uploading a file i want to read each row of it and insert it on a collection, but when i process the file the whole web freeze (like buttons dont respond). Time ago this same code worked 100% fine, after some upgrade it started working like this.
So, after a lot of testing a partner found that the “waitOn” is a flag here… why ?
If i process the file and try to navigate to a route having a subscription to any other collections it freeze.
If i process the file and try to navigate to a route without a subscription it works perfect
We call the “function1” server method in page1. If we try to go to page2 route while the method is in execution, it works succesfully. But if we try to go to page3 route, the system freeze, because this route have “waitOn”.
Thanks!
PD: Sorry my english
Maybe it’s the fact that DDP messages are handled in order (see Arunoda post on this topic).
Using this.unblock on the Meteor method may solve your problem.