mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 18:03:47 +00:00
event API refract
using optimistic updates
This commit is contained in:
@@ -10,6 +10,7 @@ export default function EditableTimer(props) {
|
||||
|
||||
// prepare time fields
|
||||
useEffect(() => {
|
||||
if (time == null) return;
|
||||
setValue(addAndFormat(time, delay));
|
||||
}, [time, delay]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user