# Fix lag when interacting with \`MarkdownElement\` \(\#31585\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 957e4adc3f2c9373c6b4dccd28824c85c803e689

Requested commit: 957e4adc3f2c9373c6b4dccd28824c85c803e689

Commit: 957e4adc3f2c9373c6b4dccd28824c85c803e689

Tree: 8a83edc7af9e16458fca791d1fd0d1406341b33a

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Fix lag when interacting with `MarkdownElement` (#31585)

Previously, we forgot to associate the `Markdown` entity to
`MarkdownElement` during `prepaint`. This caused calls to
`Context<Markdown>::notify` to not invalidate the view cache, which
meant we would have to wait for some other invalidation before seeing
the results of that initial notify.

Release Notes:

- Improved responsiveness of mouse interactions with the agent panel.

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

## Parents

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

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