# Pass a MutableAppContext to Element::layout and ::dispatch_event · gitcafe/zed

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

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

Visibility: public

Requested revision: 11285f3762d96cd7433ae24b86fabeb985897f9c

Requested commit: 11285f3762d96cd7433ae24b86fabeb985897f9c

Commit: 11285f3762d96cd7433ae24b86fabeb985897f9c

Tree: 4b4a7dd8390481a7373fd94bfc7e7c412560f454

Author: Nathan Sobo

Committer: Nathan Sobo

## Message

```
Pass a MutableAppContext to Element::layout and ::dispatch_event

We need to mutate the app in these cases to relay layout state, so this just makes things easier. We won't be able to perform layout in parallel but it's questionable whether we'll ever actually do that. If we do, we can revisit.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>

```

## Parents

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

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