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

Deduplicate fetches with same params #16

Closed
4 tasks done
Akryum opened this issue Mar 14, 2025 · 1 comment
Closed
4 tasks done

Deduplicate fetches with same params #16

Akryum opened this issue Mar 14, 2025 · 1 comment

Comments

@Akryum
Copy link
Collaborator

Akryum commented Mar 14, 2025

Clear and concise description of the problem

If two find* or query* methods are called simultaneously or before the other has resolved, they will trigger two calls to the corresponding plugin hooks. This can lead to unnecessary requests.

Suggested solution

rstore will deduplicate fetches

Alternative

No response

Additional context

No response

Validations

@hanneskuettner
Copy link
Member

It would be amazing if the same promise would be returned for the second request that is made with the same params.

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