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

[View on GitCafe](https://git.cafe/flambo/t3code/commit/4d2f16be47ad730af252ffce3b7d3d351bf83dee)

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

Visibility: public

Requested revision: 4d2f16be47ad730af252ffce3b7d3d351bf83dee

Requested commit: 4d2f16be47ad730af252ffce3b7d3d351bf83dee

Commit: 4d2f16be47ad730af252ffce3b7d3d351bf83dee

Tree: 11bd0370c5f0dde88bcda995ff892c96df4a9772

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

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

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