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鈥檒l 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 · 1 comment
Open

Order query params for more cache hits #42

JAdshead opened this issue Mar 31, 2021 · 1 comment

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.

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