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

docs: Update query string package #8871

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/guides/faq.md
Expand Up @@ -176,7 +176,7 @@ export async function action({

Using the same input name and `formData.getAll()` covers most cases for wanting to submit structured data in your forms.

If you still want to submit nested structures as well, you can use non-standard form-field naming conventions and the [`query-string`][query_string] package from npm:
If you still want to submit nested structures as well, you can use non-standard form-field naming conventions and the [`qs`][qs] package from npm:

```tsx
<>
Expand All @@ -191,7 +191,7 @@ If you still want to submit nested structures as well, you can use non-standard
And then in your action:

```tsx
import queryString from "query-string";
import queryString from "qs";

// in your action:
export async function action({
Expand Down Expand Up @@ -230,6 +230,6 @@ export async function action({
Again, `formData.getAll()` is often all you need, we encourage you to give it a shot!

[form_data]: https://developer.mozilla.org/en-US/docs/Web/API/FormData
[query_string]: https://npm.im/query-string
[qs]: https://www.npmjs.com/package/qs
[ramda]: https://npm.im/ramda
[watch_on_youtube]: https://www.youtube.com/watch?v=w2i-9cYxSdc&ab_channel=Remix