mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 21:34:04 +03:00
webterm: avoid needless %blew tasks
Any change to the session object was triggering this. But that now includes an "unacked keystrokes" counter, which updates frequently, and we definitely don't want to send resize notifications in that case.
This commit is contained in:
parent
f5089b77eb
commit
1c36ad129d
@ -271,7 +271,7 @@ export default function Buffer({ name, selected, dark }: BufferProps) {
|
||||
await api.poke(pokeTask(name, { blew: { w: session.term.cols, h: session.term.rows } }));
|
||||
session.term.focus();
|
||||
}
|
||||
}, [session, selected]);
|
||||
}, [session?.term, selected]);
|
||||
|
||||
// Effects
|
||||
// init session
|
||||
|
Loading…
Reference in New Issue
Block a user