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

Ever growing route array in routehelper.js #94

Open
OneHoopyFrood opened this issue Sep 20, 2016 · 0 comments
Open

Ever growing route array in routehelper.js #94

OneHoopyFrood opened this issue Sep 20, 2016 · 0 comments

Comments

@OneHoopyFrood
Copy link

I'm not totally sure what's supposed to be going on here. It's totally possible I'm just missing something here.

Here's what I'm seeing. In routehelper.js the getRoutes() function is pushing what appears to be the same data onto the routes array property with every call.

This is leading to the array growing linearly with every call. This begins to bog performance if you're having to iterate though the results. (We're using this routing structure in our app and iterate though it as part of building the navigation)

Is this intended functionality or a bug? If it's supposed to do this, why?

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

1 participant