# Simplify env mode change handler in ChatView · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/5656f294d05eaa6e1fcbe82b9749bf1af61793dc)

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

Visibility: public

Requested revision: 5656f294d05eaa6e1fcbe82b9749bf1af61793dc

Requested commit: 5656f294d05eaa6e1fcbe82b9749bf1af61793dc

Commit: 5656f294d05eaa6e1fcbe82b9749bf1af61793dc

Tree: 9bb19cb2ed56b71e15a3ff0c6a9aca4b50090a0b

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Simplify env mode change handler in ChatView

- Remove unnecessary `useCallback` wrapping from `onEnvModeChange`
- Keep env mode update and composer refocus behavior unchanged

```

## Parents

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

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