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

Order query params for more cache hits #42

Open
JAdshead opened this issue Mar 31, 2021 · 2 comments
Open

Order query params for more cache hits #42

JAdshead opened this issue Mar 31, 2021 · 2 comments

Comments

@JAdshead
Copy link
Contributor

💡 Feature request

Is your feature request related to a problem? Please describe

Currently query params are required to be in the same order for a cache hit.

The following calls will not be considered the same and will result in unexpected cache misses:
useFetchye('https://test.com/some-path?a=1&b=2')
useFetchye("https://test.com/some-path?b=2&a=1')

Example

Oder of query params should not matter.

useFetchye('https://test.com/some-path?a=1&b=2') and useFetchye('https://test.com/some-path?b=2&a=1') will use the same cache entry

@oneamexbot
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity.

@oneamexbot
Copy link
Contributor

This issue is stale because it has been open 30 days with no activity.

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