Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/guide/custom-search-param-serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ export function encodeToBinary(str: string): string {

> [⚠️ Why does this snippet not use atob/btoa?](#safe-binary-encodingdecoding)

## Using JSURL
## Using JSURL2

[JSURL](https://github.com/Sage/jsurl) is a non-standard library that can both compress URLs while still maintaining readability. This can be done with the following code:
[JSURL2](https://github.com/wmertens/jsurl2) is a non-standard library that can both compress URLs while still maintaining readability. This can be done with the following code:

```tsx
import {
ReactRouter,
parseSearchWith,
stringifySearchWith,
} from '@tanstack/react-router'
import jsurl from 'jsurl'
import jsurl from 'jsurl2'

const router = new ReactRouter({
parseSearch: parseSearchWith(jsurl.parse),
Expand Down