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

replace default query parser serializer #43

Open
Guria opened this issue Jul 1, 2019 · 2 comments
Open

replace default query parser serializer #43

Guria opened this issue Jul 1, 2019 · 2 comments

Comments

@Guria
Copy link

Guria commented Jul 1, 2019

I'd like to use urlon which is an url-safe version of JSON.stringify/parse with rudy.
But it seems I can't completely override function to serialize/parse whole query but only it's parts one-by-one separately :(

docs-old and actual flow-types has mention of querySerializer but its support seems to be removed in rudy implementation

@hedgepigdaniel
Copy link
Collaborator

The option names have changed, but customising query serialization is still very much supported.

options.parseSearch and options.stringifyQuery default to parse and stringify from the qs package, with the exception that in parsing, parseable numbers come out as numbers rather than strings.

I'll leave this issue open until we get the documentation up to date.

@Guria
Copy link
Author

Guria commented Jul 2, 2019

is there a reason to have different suffixes Search and Query here?

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