Skip to content

Commit 3605b98

Browse files
committedSep 16, 2024
doc: Add note about sorting of query string keys
1 parent b6055bc commit 3605b98

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', foo: 'foo' })
54+
```

0 commit comments

Comments
 (0)
Failed to load comments.