Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make layout reactivity less brittle #2501

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

robintown
Copy link
Member

Follow-up to ea2d981

This took a couple of iterations to find something that works without creating update loops, but I think that by automatically informing Grid whenever a layout component is re-rendered, we'll have a much easier time ensuring that our layouts are fully reactive.

Follow-up to ea2d981

This took a couple of iterations to find something that works without creating update loops, but I think that by automatically informing Grid whenever a layout component is re-rendered, we'll have a much easier time ensuring that our layouts are fully reactive.
Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generally makes sense. I am a bit confused about some naming.
I think its best if you give me a little bit of guidance on my comments. I think this could make it much more efficient to review.

src/grid/Grid.tsx Outdated Show resolved Hide resolved
src/grid/Grid.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving this since I am afraid that the names might be because of a lack of familiarity with the use-cases.
Thanks for your clarifications. If you feel like you have an idea how to make it more clear go for it otherwise I think it really should not be blocked by it and I can definite get accustomed to how it is now.

@robintown robintown enabled auto-merge July 25, 2024 16:51
@robintown robintown merged commit 10b915c into element-hq:livekit Jul 25, 2024
3 checks passed
@toger5
Copy link
Contributor

toger5 commented Jul 26, 2024

Thanks Robin for taking the time to rename the vatiables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants