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

[react-frontend] - Utility function - Object to QueryString #53

Open
sahilbhatia opened this issue Apr 22, 2020 · 0 comments
Open

[react-frontend] - Utility function - Object to QueryString #53

sahilbhatia opened this issue Apr 22, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request react-frontend For PRs of peerly react app

Comments

@sahilbhatia
Copy link
Contributor

Create a function that takes following arguments:

  • "options" (type: "hash", optional, defaultValue: {} )

and returns stringified version of options hash (using qs package):

Use the following options with qs package:

{
    encode: true,
    arrayFormat: "brackets",
    addQueryPrefix: true
}
@sahilbhatia sahilbhatia added the enhancement New feature or request label Apr 22, 2020
@sahilbhatia sahilbhatia changed the title Utility function - Object to QueryString [react-frontend] - Utility function - Object to QueryString Apr 22, 2020
@sahilbhatia sahilbhatia added the react-frontend For PRs of peerly react app label May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request react-frontend For PRs of peerly react app
Projects
None yet
Development

No branches or pull requests

2 participants