# Simplify Zustand selectors by removing memoized callbacks · gitcafe/t3code

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

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

Visibility: public

Requested revision: d4c90d696d2546466d364cfccc86bcf2be6a7c86

Requested commit: d4c90d696d2546466d364cfccc86bcf2be6a7c86

Commit: d4c90d696d2546466d364cfccc86bcf2be6a7c86

Tree: 478277e9ca05405bcd84389b9a2e41ca74b33421

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Simplify Zustand selectors by removing memoized callbacks

- Replace `useCallback`-wrapped `useStore` selectors with inline selectors
- Apply across chat, diff, branch toolbar, and chat thread route components

```

## Parents

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

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