Skip to content

Commit 71c84cc

Browse files
committed
doc: Add note about sorting of query string keys
1 parent 2cae1ae commit 71c84cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/docs/content/docs/seo.mdx

+7
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,10 @@ export async function generateMetadata({
4545
}
4646
}
4747
```
48+
49+
By default, query strings are sorted by their keys to prevent SEO issues related to variations in query string order.
50+
The following example will serialize the query string as `?apple=foo&banana=foo`:
51+
52+
```tsx
53+
useQueryState({ banana: 'foo', apple: 'foo' })
54+
```

0 commit comments

Comments
 (0)