Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor autorun goes into an infinite loop. #57

Open
abhima9yu opened this issue May 2, 2019 · 2 comments
Open

Meteor autorun goes into an infinite loop. #57

abhima9yu opened this issue May 2, 2019 · 2 comments

Comments

@abhima9yu
Copy link

Hi,

I am using the latest meteor and meteor-vue-tracker and I am facing an issue in which a meteor property keeps getting called infinitely and slows down the whole project.

I have created this repo to reproduce the issue. There are 4 links provided in the project. They are organisations(list of organisation), organisation dashboard (currently displays only the organisation name), OrganisationRoles (roles list) and Organisation stocks. OrganisationRoles is the only page where there is no subscription. If you go to organisationRoles page and move back to organisationDashboard page then it seems meteor autorun written in the package goes into an infinite loop. This can be confirmed by looking in the console. I have added a console log inside the meteor property, which finds organisation based on route id inside the organisation dashboard. You can see this keeps logging infinitely.

To login use the following credentials:

email - [email protected]
password - password

If in case you are unable to reproduce the issue create a new role and navigate between the routes a few times. Keep the console open at all times.

Kindly look into this as this is happening at lots of places in our project and is a blocker.

Would appreciate if you can take out some of your time and get it fixed.

Thanks,
Abhimanyu

@abhima9yu
Copy link
Author

Forgot to mention that routes related to a particular organisation appear only when an organisation is selected. You can do so by clicking on the organisation card in the organisation list page.

@ThaumRystra
Copy link

Turning on object freezing for Meteor data fixed a similar infinite loop problem I was having. It's turned off by default, so I'm not sure what the other consequences of turning it on might be?

Vue.config.meteor.freeze = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants