gpui-troubleshooting
Installation
SKILL.md
GPUI Troubleshooting
This skill covers common errors and solutions when developing with GPUI.
Borrow Checker Errors
Multiple Borrow Error
Error: Cannot borrow cx as mutable more than once
Solution: Use the inner cx provided to closures, not the outer one
// ❌ WRONG
entity.update(cx, |view, inner_cx| {
view.count += 1;
cx.notify(); // Using outer cx - ERROR!
});