Skip to content

Order query params for more cache hits #42

@JAdshead

Description

@JAdshead

💡 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions