Skip to content

Conversation

@Convly
Copy link
Member

@Convly Convly commented Feb 4, 2025

What does it do?

Replace the custom URL search params transformation (from custom to using qs).

Using qs for now to match what's used/expected on the Strapi server side.

This doubles the bundles size, this is to be expected for now. Added a todo to make sure we replace the library in the short term with a lighter version. (see ljharb/qs#404 for more info)

Why is it needed?

The custom query param manipulation was not working for deeply nested queries.

See #41

How to test it?

See reproduction steps on #41

Related issue(s)/PR(s)

fix #41

@Convly Convly added pr: fix Bug fix source: client-utils Source is client utils labels Feb 4, 2025
@Convly Convly changed the title fix(url-helper): fix url query params transformationa fix(url-helper): fix url query params transformation Feb 4, 2025
Copy link
Contributor

@innerdvations innerdvations left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and LGTM!

@Convly Convly merged commit 4af7759 into main Feb 4, 2025
7 checks passed
@Convly Convly deleted the fix/query-params-transformation branch February 4, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: fix Bug fix source: client-utils Source is client utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Not Parsing Params Properly When using Or Statement.

2 participants