From 492e8055e57607a1ab0d818de2c3446089af8cbd Mon Sep 17 00:00:00 2001 From: Jesse Mazzella Date: Wed, 2 Aug 2023 16:45:47 -0700 Subject: [PATCH 01/13] cherry-pick(#6885): Synchronize timers between multiple users (#6886) * created a throttle util and using it in timer plugin to throttle refreshing the timer domain object * Simplify timer logic * Clarify code a little * refactor: lint:fix * Fix linting issue --------- Co-authored-by: Andrew Henry Co-authored-by: Jamie V --- src/plugins/timer/components/Timer.vue | 60 ++++++++------------------ src/utils/throttle.js | 34 +++++++++++++++ 2 files changed, 53 insertions(+), 41 deletions(-) create mode 100644 src/utils/throttle.js diff --git a/src/plugins/timer/components/Timer.vue b/src/plugins/timer/components/Timer.vue index 8a28d89548..ec74cc1a2d 100644 --- a/src/plugins/timer/components/Timer.vue +++ b/src/plugins/timer/components/Timer.vue @@ -43,9 +43,11 @@