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

catApiService endpoints list requests should reuse an existing promise if it's still pending #15

Open
szabyg opened this issue Apr 10, 2015 · 0 comments

Comments

@szabyg
Copy link

szabyg commented Apr 10, 2015

If several angular components have to refresh the same list at the same time, using the same catApi endpoint, several requests are made and all of them load the list of elements. This is a problem for the performance and could be resolved in different ways.

One possibility is to keep running (unresolved) promises until resolution (or rejection) and return it to all subsequent callers if they have the same Search request parameters.

@szabyg szabyg changed the title catApiService endpoints list requests should reuse an existing and pending promise catApiService endpoints list requests should reuse an existing promise if it's still pending Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants