# Fetch models right after signing in \(\#35711\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6f5867fc886a02abf961778c99bea0159e80bae8)

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

Visibility: public

Requested revision: 6f5867fc886a02abf961778c99bea0159e80bae8

Requested commit: 6f5867fc886a02abf961778c99bea0159e80bae8

Commit: 6f5867fc886a02abf961778c99bea0159e80bae8

Tree: 36a088449a258eaba57d040faf9482905d33d308

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fetch models right after signing in (#35711)

This uses the `current_user` watch in the `UserStore` instead of looping
every 100ms in order to detect if the user had signed in.

We are changing this because we noticed it was causing the deterministic
executor in tests to never detect a "parking with nothing left to run"
situation.

This seems better in production as well, especially for users who never
sign in.

/cc @maxdeviant 

Release Notes:

- N/A

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
```

## Parents

- [0302f6356e14c03c87d812398af6b4ad4594fb74](https://git.cafe/gitcafe/zed/commit/0302f6356e14c03c87d812398af6b4ad4594fb74?format=markdown)

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