# refactor\(web\): remove redundant double parse of diff route search params \(\#598\) · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/8e8904a159e3b29fa1eae0e6f023872ef03a3f63)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: 8e8904a159e3b29fa1eae0e6f023872ef03a3f63

Requested commit: 8e8904a159e3b29fa1eae0e6f023872ef03a3f63

Commit: 8e8904a159e3b29fa1eae0e6f023872ef03a3f63

Tree: 1c7fb975268454a059dc9f79a093a0a7b77ce7f1

Author: 0x1f99d

Committer: GitHub

## Message

```
refactor(web): remove redundant double parse of diff route search params (#598)

`rawSearch` is already the output of `parseDiffRouteSearch` via the
`useSearch` select transform. The `useMemo` at line 760 re-parsed it
through the same function with an unsafe `as Record<string, unknown>`
cast, producing an identical result. Use `rawSearch` directly instead.
```

## Parents

- [16f3490aee9ab9928ae7ac084117517495155e96](https://git.cafe/gitcafe/t3code/commit/16f3490aee9ab9928ae7ac084117517495155e96?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/8e8904a159e3b29fa1eae0e6f023872ef03a3f63?format=markdown)
