Add a comment
This commit is contained in:
parent
276532e2e1
commit
2eae6243bb
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ export const PTTButton: React.FC<Props> = ({
|
||||||
|
|
||||||
const hold = useCallback(() => {
|
const hold = useCallback(() => {
|
||||||
setHeld(true);
|
setHeld(true);
|
||||||
|
// This update is delayed so the user only sees it if latency is significant
|
||||||
enqueueNetworkWaiting(true, 100);
|
enqueueNetworkWaiting(true, 100);
|
||||||
}, [setHeld, enqueueNetworkWaiting]);
|
}, [setHeld, enqueueNetworkWaiting]);
|
||||||
const unhold = useCallback(() => {
|
const unhold = useCallback(() => {
|
||||||
|
|
Loading…
Reference in a new issue