# Show optimistic active branch during checkout and branch creation · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/b81ec02984c92c9506c7859ab5c967f3b8afae1d)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: b81ec02984c92c9506c7859ab5c967f3b8afae1d

Requested commit: b81ec02984c92c9506c7859ab5c967f3b8afae1d

Commit: b81ec02984c92c9506c7859ab5c967f3b8afae1d

Tree: 0f206cc948acfd0d6ba3907405e439c7fdc52770

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Show optimistic active branch during checkout and branch creation

- use `useOptimistic` in `BranchToolbar` to update active branch immediately
- keep optimistic branch in sync on success and roll back on mutation errors

```

## Parents

- [de61c0c42b0797735a5cbe7ec6d4b3358fcf4295](https://git.cafe/screen/t3code-personal/commit/de61c0c42b0797735a5cbe7ec6d4b3358fcf4295?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/b81ec02984c92c9506c7859ab5c967f3b8afae1d?format=markdown)
